Henrywood and Agarwal, Equation (12)

Percentage Accurate: 66.4% → 84.8%
Time: 9.2s
Alternatives: 16
Speedup: 0.4×

Specification

?
\[\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) \]
(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]
\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)

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

\[\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) \]
(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]
\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)

Alternative 1: 84.8% accurate, 0.3× speedup?

\[\begin{array}{l} t_0 := \mathsf{min}\left(\left|M\right|, D\right)\\ t_1 := \mathsf{max}\left(\left|M\right|, D\right)\\ t_2 := t\_0 \cdot t\_1\\ t_3 := \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{t\_2}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_4 := \frac{t\_1}{d + d}\\ \mathbf{if}\;t\_3 \leq 2 \cdot 10^{-196}:\\ \;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_4 \cdot t\_0\right) \cdot \left(\left(t\_4 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\ \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \frac{\left(t\_1 \cdot \frac{t\_0}{d + d}\right) \cdot \left(t\_2 \cdot 0.5\right)}{d + d} \cdot \frac{h}{\ell}\right)\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{t\_1 \cdot t\_0}{d}\right) \cdot h}{\ell}, \frac{t\_2}{-2 \cdot d}, 1\right)\\ \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0 (fmin (fabs M) D))
        (t_1 (fmax (fabs M) D))
        (t_2 (* t_0 t_1))
        (t_3
         (*
          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
          (- 1.0 (* (* (/ 1.0 2.0) (pow (/ t_2 (* 2.0 d)) 2.0)) (/ h l)))))
        (t_4 (/ t_1 (+ d d))))
   (if (<= t_3 2e-196)
     (*
      (fabs (/ d (* h (sqrt (/ l h)))))
      (- 1.0 (* (* t_4 t_0) (* (* t_4 (* t_0 0.5)) (/ h l)))))
     (if (<= t_3 5e+167)
       (*
        (* (sqrt (/ d l)) (sqrt (/ d h)))
        (-
         1.0
         (* (/ (* (* t_1 (/ t_0 (+ d d))) (* t_2 0.5)) (+ d d)) (/ h l))))
       (*
        (fabs (/ (- d) (sqrt (* h l))))
        (fma
         (/ (* (* 0.25 (/ (* t_1 t_0) d)) h) l)
         (/ t_2 (* -2.0 d))
         1.0))))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = fmin(fabs(M), D);
	double t_1 = fmax(fabs(M), D);
	double t_2 = t_0 * t_1;
	double t_3 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow((t_2 / (2.0 * d)), 2.0)) * (h / l)));
	double t_4 = t_1 / (d + d);
	double tmp;
	if (t_3 <= 2e-196) {
		tmp = fabs((d / (h * sqrt((l / h))))) * (1.0 - ((t_4 * t_0) * ((t_4 * (t_0 * 0.5)) * (h / l))));
	} else if (t_3 <= 5e+167) {
		tmp = (sqrt((d / l)) * sqrt((d / h))) * (1.0 - ((((t_1 * (t_0 / (d + d))) * (t_2 * 0.5)) / (d + d)) * (h / l)));
	} else {
		tmp = fabs((-d / sqrt((h * l)))) * fma((((0.25 * ((t_1 * t_0) / d)) * h) / l), (t_2 / (-2.0 * d)), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = fmin(abs(M), D)
	t_1 = fmax(abs(M), D)
	t_2 = Float64(t_0 * t_1)
	t_3 = 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(t_2 / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
	t_4 = Float64(t_1 / Float64(d + d))
	tmp = 0.0
	if (t_3 <= 2e-196)
		tmp = Float64(abs(Float64(d / Float64(h * sqrt(Float64(l / h))))) * Float64(1.0 - Float64(Float64(t_4 * t_0) * Float64(Float64(t_4 * Float64(t_0 * 0.5)) * Float64(h / l)))));
	elseif (t_3 <= 5e+167)
		tmp = Float64(Float64(sqrt(Float64(d / l)) * sqrt(Float64(d / h))) * Float64(1.0 - Float64(Float64(Float64(Float64(t_1 * Float64(t_0 / Float64(d + d))) * Float64(t_2 * 0.5)) / Float64(d + d)) * Float64(h / l))));
	else
		tmp = Float64(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(Float64(Float64(0.25 * Float64(Float64(t_1 * t_0) / d)) * h) / l), Float64(t_2 / Float64(-2.0 * d)), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[Min[N[Abs[M], $MachinePrecision], D], $MachinePrecision]}, Block[{t$95$1 = N[Max[N[Abs[M], $MachinePrecision], D], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$0 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = 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[(t$95$2 / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$1 / N[(d + d), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 2e-196], N[(N[Abs[N[(d / N[(h * N[Sqrt[N[(l / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 - N[(N[(t$95$4 * t$95$0), $MachinePrecision] * N[(N[(t$95$4 * N[(t$95$0 * 0.5), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+167], N[(N[(N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(N[(t$95$1 * N[(t$95$0 / N[(d + d), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$2 * 0.5), $MachinePrecision]), $MachinePrecision] / N[(d + d), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[(0.25 * N[(N[(t$95$1 * t$95$0), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * h), $MachinePrecision] / l), $MachinePrecision] * N[(t$95$2 / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
t_0 := \mathsf{min}\left(\left|M\right|, D\right)\\
t_1 := \mathsf{max}\left(\left|M\right|, D\right)\\
t_2 := t\_0 \cdot t\_1\\
t_3 := \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{t\_2}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
t_4 := \frac{t\_1}{d + d}\\
\mathbf{if}\;t\_3 \leq 2 \cdot 10^{-196}:\\
\;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_4 \cdot t\_0\right) \cdot \left(\left(t\_4 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\

\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \frac{\left(t\_1 \cdot \frac{t\_0}{d + d}\right) \cdot \left(t\_2 \cdot 0.5\right)}{d + d} \cdot \frac{h}{\ell}\right)\\

\mathbf{else}:\\
\;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{t\_1 \cdot t\_0}{d}\right) \cdot h}{\ell}, \frac{t\_2}{-2 \cdot d}, 1\right)\\


\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)))) < 2.0000000000000001e-196

    1. Initial program 66.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

      \[\leadsto \left|\color{blue}{\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    7. Step-by-step derivation
      1. lower-/.f64N/A

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

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

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      4. lower-/.f6473.9%

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    8. Applied rewrites73.9%

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

    if 2.0000000000000001e-196 < (*.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.9999999999999997e167

    1. Initial program 66.4%

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

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

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

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

      \[\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. lift-/.f64N/A

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

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\frac{1}{2}} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. *-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) \]
      5. 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) \]
      6. 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) \]
      7. 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) \]
      8. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\color{blue}{\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}{2 \cdot d} \cdot \left(\frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      10. *-commutativeN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{\color{blue}{D \cdot M}}{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(\frac{M \cdot D}{2 \cdot d} \cdot \left(\color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      12. lift-*.f64N/A

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

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

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{D}{\color{blue}{d + d}} \cdot M\right) \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(\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\color{blue}{\frac{D}{d + d}} \cdot M\right) \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      16. associate-*r*N/A

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

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

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

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

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

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

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

    if 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

      \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\frac{\left(\left(M \cdot D\right) \cdot 0.5\right) \cdot h}{\left(d + d\right) \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)} \]
    8. Step-by-step derivation
      1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\frac{\frac{1}{2} \cdot \left(M \cdot D\right)}{\color{blue}{2 \cdot d}} \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      12. times-fracN/A

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\color{blue}{\frac{1}{4}} \cdot \frac{M \cdot D}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      15. lower-/.f6477.9%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\frac{1}{4} \cdot \frac{\color{blue}{D \cdot M}}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      18. lower-*.f6477.9%

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

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

Alternative 2: 84.5% accurate, 0.3× speedup?

\[\begin{array}{l} t_0 := \mathsf{min}\left(\left|M\right|, D\right)\\ t_1 := \mathsf{max}\left(\left|M\right|, D\right)\\ t_2 := t\_0 \cdot t\_1\\ t_3 := \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{t\_2}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_4 := \frac{t\_1}{d + d}\\ t_5 := t\_1 \cdot \frac{t\_0}{d + d}\\ \mathbf{if}\;t\_3 \leq 2 \cdot 10^{-196}:\\ \;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_4 \cdot t\_0\right) \cdot \left(\left(t\_4 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\ \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(t\_5 \cdot t\_5\right)\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{t\_1 \cdot t\_0}{d}\right) \cdot h}{\ell}, \frac{t\_2}{-2 \cdot d}, 1\right)\\ \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0 (fmin (fabs M) D))
        (t_1 (fmax (fabs M) D))
        (t_2 (* t_0 t_1))
        (t_3
         (*
          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
          (- 1.0 (* (* (/ 1.0 2.0) (pow (/ t_2 (* 2.0 d)) 2.0)) (/ h l)))))
        (t_4 (/ t_1 (+ d d)))
        (t_5 (* t_1 (/ t_0 (+ d d)))))
   (if (<= t_3 2e-196)
     (*
      (fabs (/ d (* h (sqrt (/ l h)))))
      (- 1.0 (* (* t_4 t_0) (* (* t_4 (* t_0 0.5)) (/ h l)))))
     (if (<= t_3 5e+167)
       (*
        (* (sqrt (/ d l)) (sqrt (/ d h)))
        (- 1.0 (* (* (/ 1.0 2.0) (* t_5 t_5)) (/ h l))))
       (*
        (fabs (/ (- d) (sqrt (* h l))))
        (fma
         (/ (* (* 0.25 (/ (* t_1 t_0) d)) h) l)
         (/ t_2 (* -2.0 d))
         1.0))))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = fmin(fabs(M), D);
	double t_1 = fmax(fabs(M), D);
	double t_2 = t_0 * t_1;
	double t_3 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow((t_2 / (2.0 * d)), 2.0)) * (h / l)));
	double t_4 = t_1 / (d + d);
	double t_5 = t_1 * (t_0 / (d + d));
	double tmp;
	if (t_3 <= 2e-196) {
		tmp = fabs((d / (h * sqrt((l / h))))) * (1.0 - ((t_4 * t_0) * ((t_4 * (t_0 * 0.5)) * (h / l))));
	} else if (t_3 <= 5e+167) {
		tmp = (sqrt((d / l)) * sqrt((d / h))) * (1.0 - (((1.0 / 2.0) * (t_5 * t_5)) * (h / l)));
	} else {
		tmp = fabs((-d / sqrt((h * l)))) * fma((((0.25 * ((t_1 * t_0) / d)) * h) / l), (t_2 / (-2.0 * d)), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = fmin(abs(M), D)
	t_1 = fmax(abs(M), D)
	t_2 = Float64(t_0 * t_1)
	t_3 = 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(t_2 / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
	t_4 = Float64(t_1 / Float64(d + d))
	t_5 = Float64(t_1 * Float64(t_0 / Float64(d + d)))
	tmp = 0.0
	if (t_3 <= 2e-196)
		tmp = Float64(abs(Float64(d / Float64(h * sqrt(Float64(l / h))))) * Float64(1.0 - Float64(Float64(t_4 * t_0) * Float64(Float64(t_4 * Float64(t_0 * 0.5)) * Float64(h / l)))));
	elseif (t_3 <= 5e+167)
		tmp = Float64(Float64(sqrt(Float64(d / l)) * sqrt(Float64(d / h))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * Float64(t_5 * t_5)) * Float64(h / l))));
	else
		tmp = Float64(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(Float64(Float64(0.25 * Float64(Float64(t_1 * t_0) / d)) * h) / l), Float64(t_2 / Float64(-2.0 * d)), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[Min[N[Abs[M], $MachinePrecision], D], $MachinePrecision]}, Block[{t$95$1 = N[Max[N[Abs[M], $MachinePrecision], D], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$0 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = 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[(t$95$2 / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$1 / N[(d + d), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$1 * N[(t$95$0 / N[(d + d), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 2e-196], N[(N[Abs[N[(d / N[(h * N[Sqrt[N[(l / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 - N[(N[(t$95$4 * t$95$0), $MachinePrecision] * N[(N[(t$95$4 * N[(t$95$0 * 0.5), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+167], N[(N[(N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[(t$95$5 * t$95$5), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[(0.25 * N[(N[(t$95$1 * t$95$0), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * h), $MachinePrecision] / l), $MachinePrecision] * N[(t$95$2 / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := \mathsf{min}\left(\left|M\right|, D\right)\\
t_1 := \mathsf{max}\left(\left|M\right|, D\right)\\
t_2 := t\_0 \cdot t\_1\\
t_3 := \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{t\_2}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
t_4 := \frac{t\_1}{d + d}\\
t_5 := t\_1 \cdot \frac{t\_0}{d + d}\\
\mathbf{if}\;t\_3 \leq 2 \cdot 10^{-196}:\\
\;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_4 \cdot t\_0\right) \cdot \left(\left(t\_4 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\

\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(t\_5 \cdot t\_5\right)\right) \cdot \frac{h}{\ell}\right)\\

\mathbf{else}:\\
\;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{t\_1 \cdot t\_0}{d}\right) \cdot h}{\ell}, \frac{t\_2}{-2 \cdot d}, 1\right)\\


\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)))) < 2.0000000000000001e-196

    1. Initial program 66.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

      \[\leadsto \left|\color{blue}{\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    7. Step-by-step derivation
      1. lower-/.f64N/A

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

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

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      4. lower-/.f6473.9%

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    8. Applied rewrites73.9%

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

    if 2.0000000000000001e-196 < (*.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.9999999999999997e167

    1. Initial program 66.4%

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

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

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

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

      \[\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. lower-*.f6466.4%

        \[\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) \]
      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(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{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{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      6. *-commutativeN/A

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

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

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

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(D \cdot \color{blue}{\frac{M}{2 \cdot d}}\right) \cdot \frac{M \cdot D}{2 \cdot d}\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{1}{2} \cdot \left(\left(D \cdot \frac{M}{\color{blue}{2 \cdot d}}\right) \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      11. count-2-revN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(D \cdot \frac{M}{\color{blue}{d + d}}\right) \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      12. lift-+.f6465.7%

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

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

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

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

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(D \cdot \frac{M}{d + d}\right) \cdot \color{blue}{\left(D \cdot \frac{M}{2 \cdot d}\right)}\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(\frac{1}{2} \cdot \left(\left(D \cdot \frac{M}{d + d}\right) \cdot \color{blue}{\left(D \cdot \frac{M}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      18. lower-/.f6466.2%

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

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

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

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

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

    if 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

      \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\frac{\left(\left(M \cdot D\right) \cdot 0.5\right) \cdot h}{\left(d + d\right) \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)} \]
    8. Step-by-step derivation
      1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\frac{\frac{1}{2} \cdot \left(M \cdot D\right)}{\color{blue}{2 \cdot d}} \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      12. times-fracN/A

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\color{blue}{\frac{1}{4}} \cdot \frac{M \cdot D}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      15. lower-/.f6477.9%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\frac{1}{4} \cdot \frac{\color{blue}{D \cdot M}}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      18. lower-*.f6477.9%

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

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

Alternative 3: 84.3% accurate, 0.4× speedup?

\[\begin{array}{l} t_0 := \mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)\\ t_1 := \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{t\_0}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_2 := \frac{\mathsf{max}\left(M, D\right)}{d + d}\\ \mathbf{if}\;t\_1 \leq 2 \cdot 10^{-196}:\\ \;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_2 \cdot \mathsf{min}\left(M, D\right)\right) \cdot \left(\left(t\_2 \cdot \left(\mathsf{min}\left(M, D\right) \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \mathsf{min}\left(M, D\right)}{d}\right) \cdot h}{\ell}, \frac{t\_0}{-2 \cdot d}, 1\right)\\ \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0 (* (fmin M D) (fmax M D)))
        (t_1
         (*
          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
          (- 1.0 (* (* (/ 1.0 2.0) (pow (/ t_0 (* 2.0 d)) 2.0)) (/ h l)))))
        (t_2 (/ (fmax M D) (+ d d))))
   (if (<= t_1 2e-196)
     (*
      (fabs (/ d (* h (sqrt (/ l h)))))
      (- 1.0 (* (* t_2 (fmin M D)) (* (* t_2 (* (fmin M D) 0.5)) (/ h l)))))
     (if (<= t_1 5e+167)
       (* (sqrt (/ d h)) (sqrt (/ d l)))
       (*
        (fabs (/ (- d) (sqrt (* h l))))
        (fma
         (/ (* (* 0.25 (/ (* (fmax M D) (fmin M D)) d)) h) l)
         (/ t_0 (* -2.0 d))
         1.0))))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = fmin(M, D) * fmax(M, D);
	double t_1 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow((t_0 / (2.0 * d)), 2.0)) * (h / l)));
	double t_2 = fmax(M, D) / (d + d);
	double tmp;
	if (t_1 <= 2e-196) {
		tmp = fabs((d / (h * sqrt((l / h))))) * (1.0 - ((t_2 * fmin(M, D)) * ((t_2 * (fmin(M, D) * 0.5)) * (h / l))));
	} else if (t_1 <= 5e+167) {
		tmp = sqrt((d / h)) * sqrt((d / l));
	} else {
		tmp = fabs((-d / sqrt((h * l)))) * fma((((0.25 * ((fmax(M, D) * fmin(M, D)) / d)) * h) / l), (t_0 / (-2.0 * d)), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = Float64(fmin(M, D) * fmax(M, D))
	t_1 = 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(t_0 / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
	t_2 = Float64(fmax(M, D) / Float64(d + d))
	tmp = 0.0
	if (t_1 <= 2e-196)
		tmp = Float64(abs(Float64(d / Float64(h * sqrt(Float64(l / h))))) * Float64(1.0 - Float64(Float64(t_2 * fmin(M, D)) * Float64(Float64(t_2 * Float64(fmin(M, D) * 0.5)) * Float64(h / l)))));
	elseif (t_1 <= 5e+167)
		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
	else
		tmp = Float64(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(Float64(Float64(0.25 * Float64(Float64(fmax(M, D) * fmin(M, D)) / d)) * h) / l), Float64(t_0 / Float64(-2.0 * d)), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[Min[M, D], $MachinePrecision] * N[Max[M, D], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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[(t$95$0 / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Max[M, D], $MachinePrecision] / N[(d + d), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e-196], N[(N[Abs[N[(d / N[(h * N[Sqrt[N[(l / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 - N[(N[(t$95$2 * N[Min[M, D], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$2 * N[(N[Min[M, D], $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[(0.25 * N[(N[(N[Max[M, D], $MachinePrecision] * N[Min[M, D], $MachinePrecision]), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * h), $MachinePrecision] / l), $MachinePrecision] * N[(t$95$0 / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
t_0 := \mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)\\
t_1 := \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{t\_0}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
t_2 := \frac{\mathsf{max}\left(M, D\right)}{d + d}\\
\mathbf{if}\;t\_1 \leq 2 \cdot 10^{-196}:\\
\;\;\;\;\left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(t\_2 \cdot \mathsf{min}\left(M, D\right)\right) \cdot \left(\left(t\_2 \cdot \left(\mathsf{min}\left(M, D\right) \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right)\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

\mathbf{else}:\\
\;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \mathsf{min}\left(M, D\right)}{d}\right) \cdot h}{\ell}, \frac{t\_0}{-2 \cdot d}, 1\right)\\


\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)))) < 2.0000000000000001e-196

    1. Initial program 66.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

      \[\leadsto \left|\color{blue}{\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    7. Step-by-step derivation
      1. lower-/.f64N/A

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

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

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      4. lower-/.f6473.9%

        \[\leadsto \left|\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    8. Applied rewrites73.9%

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

    if 2.0000000000000001e-196 < (*.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.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

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

    if 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

      \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\frac{\left(\left(M \cdot D\right) \cdot 0.5\right) \cdot h}{\left(d + d\right) \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)} \]
    8. Step-by-step derivation
      1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\frac{\frac{1}{2} \cdot \left(M \cdot D\right)}{\color{blue}{2 \cdot d}} \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      12. times-fracN/A

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\color{blue}{\frac{1}{4}} \cdot \frac{M \cdot D}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      15. lower-/.f6477.9%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\frac{1}{4} \cdot \frac{\color{blue}{D \cdot M}}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      18. lower-*.f6477.9%

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

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

Alternative 4: 83.2% accurate, 0.4× speedup?

\[\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 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)\\ \mathbf{if}\;t\_0 \leq 10^{-202}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \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))))
          (fma
           (/ (* (* 0.25 (/ (* D M) d)) h) l)
           (/ (* M D) (* -2.0 d))
           1.0))))
   (if (<= t_0 1e-202)
     t_1
     (if (<= t_0 5e+167) (* (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)))) * fma((((0.25 * ((D * M) / d)) * h) / l), ((M * D) / (-2.0 * d)), 1.0);
	double tmp;
	if (t_0 <= 1e-202) {
		tmp = t_1;
	} else if (t_0 <= 5e+167) {
		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(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(Float64(Float64(0.25 * Float64(Float64(D * M) / d)) * h) / l), Float64(Float64(M * D) / Float64(-2.0 * d)), 1.0))
	tmp = 0.0
	if (t_0 <= 1e-202)
		tmp = t_1;
	elseif (t_0 <= 5e+167)
		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[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[(0.25 * N[(N[(D * M), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * h), $MachinePrecision] / l), $MachinePrecision] * N[(N[(M * D), $MachinePrecision] / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 1e-202], t$95$1, If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\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 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)\\
\mathbf{if}\;t\_0 \leq 10^{-202}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\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)))) < 1e-202 or 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

      \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\frac{\left(\left(M \cdot D\right) \cdot 0.5\right) \cdot h}{\left(d + d\right) \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)} \]
    8. Step-by-step derivation
      1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\frac{\frac{1}{2} \cdot \left(M \cdot D\right)}{\color{blue}{2 \cdot d}} \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      12. times-fracN/A

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\color{blue}{\frac{1}{4}} \cdot \frac{M \cdot D}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      15. lower-/.f6477.9%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{\left(\frac{1}{4} \cdot \frac{\color{blue}{D \cdot M}}{d}\right) \cdot h}{\ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      18. lower-*.f6477.9%

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

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

    if 1e-202 < (*.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.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

      \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 5: 82.4% accurate, 0.4× speedup?

\[\begin{array}{l} t_0 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(h \cdot \left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \mathsf{min}\left(M, D\right)}{d}\right), \frac{\left(\mathsf{max}\left(M, D\right) \cdot \frac{-0.5}{d}\right) \cdot \mathsf{min}\left(M, D\right)}{\ell}, 1\right)\\ t_1 := \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{\mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{if}\;t\_1 \leq 10^{-202}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0
         (*
          (fabs (/ (- d) (sqrt (* h l))))
          (fma
           (* h (* 0.25 (/ (* (fmax M D) (fmin M D)) d)))
           (/ (* (* (fmax M D) (/ -0.5 d)) (fmin M D)) l)
           1.0)))
        (t_1
         (*
          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
          (-
           1.0
           (*
            (* (/ 1.0 2.0) (pow (/ (* (fmin M D) (fmax M D)) (* 2.0 d)) 2.0))
            (/ h l))))))
   (if (<= t_1 1e-202)
     t_0
     (if (<= t_1 5e+167) (* (sqrt (/ d h)) (sqrt (/ d l))) t_0))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = fabs((-d / sqrt((h * l)))) * fma((h * (0.25 * ((fmax(M, D) * fmin(M, D)) / d))), (((fmax(M, D) * (-0.5 / d)) * fmin(M, D)) / l), 1.0);
	double t_1 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((fmin(M, D) * fmax(M, D)) / (2.0 * d)), 2.0)) * (h / l)));
	double tmp;
	if (t_1 <= 1e-202) {
		tmp = t_0;
	} else if (t_1 <= 5e+167) {
		tmp = sqrt((d / h)) * sqrt((d / l));
	} else {
		tmp = t_0;
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = Float64(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(h * Float64(0.25 * Float64(Float64(fmax(M, D) * fmin(M, D)) / d))), Float64(Float64(Float64(fmax(M, D) * Float64(-0.5 / d)) * fmin(M, D)) / l), 1.0))
	t_1 = 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(fmin(M, D) * fmax(M, D)) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
	tmp = 0.0
	if (t_1 <= 1e-202)
		tmp = t_0;
	elseif (t_1 <= 5e+167)
		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
	else
		tmp = t_0;
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(h * N[(0.25 * N[(N[(N[Max[M, D], $MachinePrecision] * N[Min[M, D], $MachinePrecision]), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Max[M, D], $MachinePrecision] * N[(-0.5 / d), $MachinePrecision]), $MachinePrecision] * N[Min[M, D], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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[(N[Min[M, D], $MachinePrecision] * N[Max[M, D], $MachinePrecision]), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e-202], t$95$0, If[LessEqual[t$95$1, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
t_0 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(h \cdot \left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \mathsf{min}\left(M, D\right)}{d}\right), \frac{\left(\mathsf{max}\left(M, D\right) \cdot \frac{-0.5}{d}\right) \cdot \mathsf{min}\left(M, D\right)}{\ell}, 1\right)\\
t_1 := \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{\mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
\mathbf{if}\;t\_1 \leq 10^{-202}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\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)))) < 1e-202 or 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

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

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

    if 1e-202 < (*.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.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

      \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 6: 79.3% accurate, 0.4× speedup?

\[\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 := \sqrt{h \cdot \ell}\\ \mathbf{if}\;t\_0 \leq 10^{-202}:\\ \;\;\;\;-\mathsf{fma}\left(\frac{\left(M \cdot D\right) \cdot D}{4 \cdot d} \cdot \frac{M}{d}, \frac{h}{\ell} \cdot 0.5, -1\right) \cdot \frac{\left|d\right|}{t\_1}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{t\_1}\right| \cdot \mathsf{fma}\left(0.25 \cdot \frac{D \cdot \left(M \cdot h\right)}{d \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right)\\ \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 (sqrt (* h l))))
   (if (<= t_0 1e-202)
     (-
      (*
       (fma (* (/ (* (* M D) D) (* 4.0 d)) (/ M d)) (* (/ h l) 0.5) -1.0)
       (/ (fabs d) t_1)))
     (if (<= t_0 5e+167)
       (* (sqrt (/ d h)) (sqrt (/ d l)))
       (*
        (fabs (/ (- d) t_1))
        (fma
         (* 0.25 (/ (* D (* M h)) (* d l)))
         (/ (* M D) (* -2.0 d))
         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 = sqrt((h * l));
	double tmp;
	if (t_0 <= 1e-202) {
		tmp = -(fma(((((M * D) * D) / (4.0 * d)) * (M / d)), ((h / l) * 0.5), -1.0) * (fabs(d) / t_1));
	} else if (t_0 <= 5e+167) {
		tmp = sqrt((d / h)) * sqrt((d / l));
	} else {
		tmp = fabs((-d / t_1)) * fma((0.25 * ((D * (M * h)) / (d * l))), ((M * D) / (-2.0 * d)), 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 = sqrt(Float64(h * l))
	tmp = 0.0
	if (t_0 <= 1e-202)
		tmp = Float64(-Float64(fma(Float64(Float64(Float64(Float64(M * D) * D) / Float64(4.0 * d)) * Float64(M / d)), Float64(Float64(h / l) * 0.5), -1.0) * Float64(abs(d) / t_1)));
	elseif (t_0 <= 5e+167)
		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
	else
		tmp = Float64(abs(Float64(Float64(-d) / t_1)) * fma(Float64(0.25 * Float64(Float64(D * Float64(M * h)) / Float64(d * l))), Float64(Float64(M * D) / Float64(-2.0 * d)), 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[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$0, 1e-202], (-N[(N[(N[(N[(N[(N[(M * D), $MachinePrecision] * D), $MachinePrecision] / N[(4.0 * d), $MachinePrecision]), $MachinePrecision] * N[(M / d), $MachinePrecision]), $MachinePrecision] * N[(N[(h / l), $MachinePrecision] * 0.5), $MachinePrecision] + -1.0), $MachinePrecision] * N[(N[Abs[d], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / t$95$1), $MachinePrecision]], $MachinePrecision] * N[(N[(0.25 * N[(N[(D * N[(M * h), $MachinePrecision]), $MachinePrecision] / N[(d * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(M * D), $MachinePrecision] / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\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 := \sqrt{h \cdot \ell}\\
\mathbf{if}\;t\_0 \leq 10^{-202}:\\
\;\;\;\;-\mathsf{fma}\left(\frac{\left(M \cdot D\right) \cdot D}{4 \cdot d} \cdot \frac{M}{d}, \frac{h}{\ell} \cdot 0.5, -1\right) \cdot \frac{\left|d\right|}{t\_1}\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

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


\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)))) < 1e-202

    1. Initial program 66.4%

      \[\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 \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 - \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({\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 - \color{blue}{\frac{h}{\ell} \cdot \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
      3. lift-*.f64N/A

        \[\leadsto \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 - \frac{h}{\ell} \cdot \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
      4. associate-*r*N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
      5. lift-pow.f64N/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
      6. unpow2N/A

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

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \]
      8. lift-/.f64N/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \]
      9. frac-timesN/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\left(M \cdot D\right) \cdot \left(M \cdot D\right)}{\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)}}\right) \]
      10. frac-2negN/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(\left(M \cdot D\right) \cdot \left(M \cdot D\right)\right)}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}}\right) \]
      11. distribute-rgt-neg-outN/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\color{blue}{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}\right) \]
      12. distribute-lft-neg-outN/A

        \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}{\color{blue}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
      13. associate-*r/N/A

        \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
    3. Applied rewrites53.2%

      \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot 0.5\right) \cdot \left(\left(-M\right) \cdot \left(D \cdot \left(D \cdot M\right)\right)\right)}{-4 \cdot \left(d \cdot d\right)}}\right) \]
    4. Applied rewrites28.6%

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

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

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

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

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

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

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

        \[\leadsto -\mathsf{fma}\left(\frac{\left(\left(M \cdot D\right) \cdot D\right) \cdot M}{\color{blue}{\left(4 \cdot d\right) \cdot d}}, \frac{h}{\ell} \cdot \frac{1}{2}, -1\right) \cdot \frac{-d}{\sqrt{h \cdot \ell}} \]
      8. times-fracN/A

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

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

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

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

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

        \[\leadsto -\mathsf{fma}\left(\frac{\left(M \cdot D\right) \cdot D}{\color{blue}{4 \cdot d}} \cdot \frac{M}{d}, \frac{h}{\ell} \cdot \frac{1}{2}, -1\right) \cdot \frac{-d}{\sqrt{h \cdot \ell}} \]
      14. lower-/.f6434.4%

        \[\leadsto -\mathsf{fma}\left(\frac{\left(M \cdot D\right) \cdot D}{4 \cdot d} \cdot \color{blue}{\frac{M}{d}}, \frac{h}{\ell} \cdot 0.5, -1\right) \cdot \frac{-d}{\sqrt{h \cdot \ell}} \]
    6. Applied rewrites34.4%

      \[\leadsto -\mathsf{fma}\left(\color{blue}{\frac{\left(M \cdot D\right) \cdot D}{4 \cdot d} \cdot \frac{M}{d}}, \frac{h}{\ell} \cdot 0.5, -1\right) \cdot \frac{-d}{\sqrt{h \cdot \ell}} \]
    7. Step-by-step derivation
      1. rem-square-sqrtN/A

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

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

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

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

        \[\leadsto -\mathsf{fma}\left(\frac{\left(M \cdot D\right) \cdot D}{4 \cdot d} \cdot \frac{M}{d}, \frac{h}{\ell} \cdot \frac{1}{2}, -1\right) \cdot \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \]
      6. lower-fabs.f6465.4%

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

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

    if 1e-202 < (*.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.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

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

    if 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{1}{4} \cdot \frac{D \cdot \left(M \cdot h\right)}{d \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      5. lower-*.f6473.2%

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(0.25 \cdot \frac{D \cdot \left(M \cdot h\right)}{d \cdot \color{blue}{\ell}}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
    10. Applied rewrites73.2%

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

Alternative 7: 78.4% accurate, 0.4× speedup?

\[\begin{array}{l} t_0 := \mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)\\ t_1 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \left(\mathsf{min}\left(M, D\right) \cdot h\right)}{d \cdot \ell}, \frac{t\_0}{-2 \cdot d}, 1\right)\\ t_2 := \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{t\_0}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{if}\;t\_2 \leq 10^{-202}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0 (* (fmin M D) (fmax M D)))
        (t_1
         (*
          (fabs (/ (- d) (sqrt (* h l))))
          (fma
           (* 0.25 (/ (* (fmax M D) (* (fmin M D) h)) (* d l)))
           (/ t_0 (* -2.0 d))
           1.0)))
        (t_2
         (*
          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
          (- 1.0 (* (* (/ 1.0 2.0) (pow (/ t_0 (* 2.0 d)) 2.0)) (/ h l))))))
   (if (<= t_2 1e-202)
     t_1
     (if (<= t_2 5e+167) (* (sqrt (/ d h)) (sqrt (/ d l))) t_1))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = fmin(M, D) * fmax(M, D);
	double t_1 = fabs((-d / sqrt((h * l)))) * fma((0.25 * ((fmax(M, D) * (fmin(M, D) * h)) / (d * l))), (t_0 / (-2.0 * d)), 1.0);
	double t_2 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow((t_0 / (2.0 * d)), 2.0)) * (h / l)));
	double tmp;
	if (t_2 <= 1e-202) {
		tmp = t_1;
	} else if (t_2 <= 5e+167) {
		tmp = sqrt((d / h)) * sqrt((d / l));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = Float64(fmin(M, D) * fmax(M, D))
	t_1 = Float64(abs(Float64(Float64(-d) / sqrt(Float64(h * l)))) * fma(Float64(0.25 * Float64(Float64(fmax(M, D) * Float64(fmin(M, D) * h)) / Float64(d * l))), Float64(t_0 / Float64(-2.0 * d)), 1.0))
	t_2 = 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(t_0 / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
	tmp = 0.0
	if (t_2 <= 1e-202)
		tmp = t_1;
	elseif (t_2 <= 5e+167)
		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[Min[M, D], $MachinePrecision] * N[Max[M, D], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(0.25 * N[(N[(N[Max[M, D], $MachinePrecision] * N[(N[Min[M, D], $MachinePrecision] * h), $MachinePrecision]), $MachinePrecision] / N[(d * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / N[(-2.0 * d), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[(t$95$0 / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 1e-202], t$95$1, If[LessEqual[t$95$2, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
t_0 := \mathsf{min}\left(M, D\right) \cdot \mathsf{max}\left(M, D\right)\\
t_1 := \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(0.25 \cdot \frac{\mathsf{max}\left(M, D\right) \cdot \left(\mathsf{min}\left(M, D\right) \cdot h\right)}{d \cdot \ell}, \frac{t\_0}{-2 \cdot d}, 1\right)\\
t_2 := \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{t\_0}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
\mathbf{if}\;t\_2 \leq 10^{-202}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\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)))) < 1e-202 or 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

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

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

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(\frac{1}{4} \cdot \frac{D \cdot \left(M \cdot h\right)}{d \cdot \ell}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
      5. lower-*.f6473.2%

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \mathsf{fma}\left(0.25 \cdot \frac{D \cdot \left(M \cdot h\right)}{d \cdot \color{blue}{\ell}}, \frac{M \cdot D}{-2 \cdot d}, 1\right) \]
    10. Applied rewrites73.2%

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

    if 1e-202 < (*.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.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

      \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 8: 61.7% accurate, 0.5× speedup?

\[\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 0:\\ \;\;\;\;\frac{\mathsf{fma}\left(\left(\left(\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot \frac{h}{\ell}\right) \cdot D\right) \cdot M, \frac{-0.5}{d}, 1\right) \cdot \left(-d\right)}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 0.0)
     (/
      (*
       (fma (* (* (* (* 0.25 (/ (* D M) d)) (/ h l)) D) M) (/ -0.5 d) 1.0)
       (- d))
      (sqrt (* l h)))
     (if (<= t_0 5e+167)
       (* (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 <= 0.0) {
		tmp = (fma(((((0.25 * ((D * M) / d)) * (h / l)) * D) * M), (-0.5 / d), 1.0) * -d) / sqrt((l * h));
	} else if (t_0 <= 5e+167) {
		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 <= 0.0)
		tmp = Float64(Float64(fma(Float64(Float64(Float64(Float64(0.25 * Float64(Float64(D * M) / d)) * Float64(h / l)) * D) * M), Float64(-0.5 / d), 1.0) * Float64(-d)) / sqrt(Float64(l * h)));
	elseif (t_0 <= 5e+167)
		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
	else
		tmp = Float64(abs(Float64(Float64(-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, 0.0], N[(N[(N[(N[(N[(N[(N[(0.25 * N[(N[(D * M), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision] * D), $MachinePrecision] * M), $MachinePrecision] * N[(-0.5 / d), $MachinePrecision] + 1.0), $MachinePrecision] * (-d)), $MachinePrecision] / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]
\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 0:\\
\;\;\;\;\frac{\mathsf{fma}\left(\left(\left(\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot \frac{h}{\ell}\right) \cdot D\right) \cdot M, \frac{-0.5}{d}, 1\right) \cdot \left(-d\right)}{\sqrt{\ell \cdot h}}\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
\;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\

\mathbf{else}:\\
\;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\


\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)))) < 0.0

    1. Initial program 66.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. fp-cancel-sub-sign-invN/A

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

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

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

        \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
    7. Applied rewrites75.2%

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

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

    if 0.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)))) < 4.9999999999999997e167

    1. Initial program 66.4%

      \[\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. Taylor expanded in h around 0

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

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

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

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

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      6. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
    4. Applied rewrites23.8%

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      2. mult-flipN/A

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      5. lower-/.f6423.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    6. Applied rewrites23.8%

      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
    7. Taylor expanded in h around inf

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

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

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

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

        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      5. lower-/.f6439.2%

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

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

    if 4.9999999999999997e167 < (*.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.4%

      \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
      2. lift-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. *-commutativeN/A

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

        \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. unpow2N/A

        \[\leadsto \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(\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) \]
      6. associate-*l*N/A

        \[\leadsto \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 - \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. associate-*l*N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      9. lift-/.f64N/A

        \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      10. lift-*.f64N/A

        \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. *-commutativeN/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      14. lower-/.f64N/A

        \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      15. lift-*.f64N/A

        \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      16. count-2-revN/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      17. lower-+.f64N/A

        \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
      18. lower-*.f64N/A

        \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
    3. Applied rewrites67.9%

      \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
    4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      3. lift-/.f64N/A

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

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

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

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

        \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      8. pow-prod-downN/A

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

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

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

        \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      12. pow-prod-downN/A

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

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

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

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

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

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

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

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      20. lower-fabs.f6467.9%

        \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      21. lift-*.f64N/A

        \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
    5. Applied rewrites71.7%

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

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

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

    Alternative 9: 61.6% accurate, 0.5× speedup?

    \[\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 0:\\ \;\;\;\;\mathsf{fma}\left(\left(\left(\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot \frac{h}{\ell}\right) \cdot D\right) \cdot M, \frac{-0.5}{d}, 1\right) \cdot \frac{-d}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 0.0)
         (*
          (fma (* (* (* (* 0.25 (/ (* D M) d)) (/ h l)) D) M) (/ -0.5 d) 1.0)
          (/ (- d) (sqrt (* l h))))
         (if (<= t_0 5e+167)
           (* (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 <= 0.0) {
    		tmp = fma(((((0.25 * ((D * M) / d)) * (h / l)) * D) * M), (-0.5 / d), 1.0) * (-d / sqrt((l * h)));
    	} else if (t_0 <= 5e+167) {
    		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 <= 0.0)
    		tmp = Float64(fma(Float64(Float64(Float64(Float64(0.25 * Float64(Float64(D * M) / d)) * Float64(h / l)) * D) * M), Float64(-0.5 / d), 1.0) * Float64(Float64(-d) / sqrt(Float64(l * h))));
    	elseif (t_0 <= 5e+167)
    		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
    	else
    		tmp = Float64(abs(Float64(Float64(-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, 0.0], N[(N[(N[(N[(N[(N[(0.25 * N[(N[(D * M), $MachinePrecision] / d), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision] * D), $MachinePrecision] * M), $MachinePrecision] * N[(-0.5 / d), $MachinePrecision] + 1.0), $MachinePrecision] * N[((-d) / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]
    
    \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 0:\\
    \;\;\;\;\mathsf{fma}\left(\left(\left(\left(0.25 \cdot \frac{D \cdot M}{d}\right) \cdot \frac{h}{\ell}\right) \cdot D\right) \cdot M, \frac{-0.5}{d}, 1\right) \cdot \frac{-d}{\sqrt{\ell \cdot h}}\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
    \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
    
    \mathbf{else}:\\
    \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
    
    
    \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)))) < 0.0

      1. Initial program 66.4%

        \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
        2. lift-*.f64N/A

          \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. unpow2N/A

          \[\leadsto \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(\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) \]
        6. associate-*l*N/A

          \[\leadsto \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 - \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. associate-*l*N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
        8. lower-*.f64N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
        9. lift-/.f64N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        10. lift-*.f64N/A

          \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        11. associate-/l*N/A

          \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        12. *-commutativeN/A

          \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        13. lower-*.f64N/A

          \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        14. lower-/.f64N/A

          \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        15. lift-*.f64N/A

          \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        16. count-2-revN/A

          \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        17. lower-+.f64N/A

          \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        18. lower-*.f64N/A

          \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. Applied rewrites67.9%

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        2. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        3. lift-/.f64N/A

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

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

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

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

          \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        8. pow-prod-downN/A

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

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

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

          \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        12. pow-prod-downN/A

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

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

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

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

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

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

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

          \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        20. lower-fabs.f6467.9%

          \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        21. lift-*.f64N/A

          \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      5. Applied rewrites71.7%

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

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

          \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \left(1 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
        3. fp-cancel-sub-sign-invN/A

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

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

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

          \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{\mathsf{fma}\left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}, \mathsf{neg}\left(\frac{D}{d + d} \cdot M\right), 1\right)} \]
      7. Applied rewrites75.2%

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

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

      if 0.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)))) < 4.9999999999999997e167

      1. Initial program 66.4%

        \[\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. Taylor expanded in h around 0

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

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

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

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

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

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        6. lower-/.f6423.8%

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
      4. Applied rewrites23.8%

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

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        2. mult-flipN/A

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
        3. *-commutativeN/A

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

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
        5. lower-/.f6423.8%

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      6. Applied rewrites23.8%

        \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
      7. Taylor expanded in h around inf

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

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

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

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

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
        5. lower-/.f6439.2%

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

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

      if 4.9999999999999997e167 < (*.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.4%

        \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
        2. lift-*.f64N/A

          \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. unpow2N/A

          \[\leadsto \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(\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) \]
        6. associate-*l*N/A

          \[\leadsto \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 - \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. associate-*l*N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
        8. lower-*.f64N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
        9. lift-/.f64N/A

          \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        10. lift-*.f64N/A

          \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        11. associate-/l*N/A

          \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        12. *-commutativeN/A

          \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        13. lower-*.f64N/A

          \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        14. lower-/.f64N/A

          \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        15. lift-*.f64N/A

          \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        16. count-2-revN/A

          \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        17. lower-+.f64N/A

          \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
        18. lower-*.f64N/A

          \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
      3. Applied rewrites67.9%

        \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
      4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        2. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        3. lift-/.f64N/A

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

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

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

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

          \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        8. pow-prod-downN/A

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

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

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

          \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        12. pow-prod-downN/A

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

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

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

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

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

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

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

          \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        20. lower-fabs.f6467.9%

          \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        21. lift-*.f64N/A

          \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
      5. Applied rewrites71.7%

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

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

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

      Alternative 10: 55.8% accurate, 0.5× speedup?

      \[\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 := \sqrt{\frac{d}{\ell}}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-51}:\\ \;\;\;\;\frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot t\_1}{h}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot t\_1\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 (sqrt (/ d l))))
         (if (<= t_0 -2e-51)
           (/ (* (* -1.0 (* d (sqrt (sqrt (* (/ h d) (/ h d)))))) t_1) h)
           (if (<= t_0 5e+167)
             (* (sqrt (/ d h)) t_1)
             (* (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 t_1 = sqrt((d / l));
      	double tmp;
      	if (t_0 <= -2e-51) {
      		tmp = ((-1.0 * (d * sqrt(sqrt(((h / d) * (h / d)))))) * t_1) / h;
      	} else if (t_0 <= 5e+167) {
      		tmp = sqrt((d / h)) * t_1;
      	} 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) :: 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 = sqrt((d / l))
          if (t_0 <= (-2d-51)) then
              tmp = (((-1.0d0) * (d * sqrt(sqrt(((h / d) * (h / d)))))) * t_1) / h
          else if (t_0 <= 5d+167) then
              tmp = sqrt((d / h)) * t_1
          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 t_1 = Math.sqrt((d / l));
      	double tmp;
      	if (t_0 <= -2e-51) {
      		tmp = ((-1.0 * (d * Math.sqrt(Math.sqrt(((h / d) * (h / d)))))) * t_1) / h;
      	} else if (t_0 <= 5e+167) {
      		tmp = Math.sqrt((d / h)) * t_1;
      	} 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)))
      	t_1 = math.sqrt((d / l))
      	tmp = 0
      	if t_0 <= -2e-51:
      		tmp = ((-1.0 * (d * math.sqrt(math.sqrt(((h / d) * (h / d)))))) * t_1) / h
      	elif t_0 <= 5e+167:
      		tmp = math.sqrt((d / h)) * t_1
      	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))))
      	t_1 = sqrt(Float64(d / l))
      	tmp = 0.0
      	if (t_0 <= -2e-51)
      		tmp = Float64(Float64(Float64(-1.0 * Float64(d * sqrt(sqrt(Float64(Float64(h / d) * Float64(h / d)))))) * t_1) / h);
      	elseif (t_0 <= 5e+167)
      		tmp = Float64(sqrt(Float64(d / h)) * t_1);
      	else
      		tmp = Float64(abs(Float64(Float64(-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)));
      	t_1 = sqrt((d / l));
      	tmp = 0.0;
      	if (t_0 <= -2e-51)
      		tmp = ((-1.0 * (d * sqrt(sqrt(((h / d) * (h / d)))))) * t_1) / h;
      	elseif (t_0 <= 5e+167)
      		tmp = sqrt((d / h)) * t_1;
      	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]}, Block[{t$95$1 = N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$0, -2e-51], N[(N[(N[(-1.0 * N[(d * N[Sqrt[N[Sqrt[N[(N[(h / d), $MachinePrecision] * N[(h / d), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] / h), $MachinePrecision], If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]]
      
      \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 := \sqrt{\frac{d}{\ell}}\\
      \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-51}:\\
      \;\;\;\;\frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot t\_1}{h}\\
      
      \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
      \;\;\;\;\sqrt{\frac{d}{h}} \cdot t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
      
      
      \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)))) < -2e-51

        1. Initial program 66.4%

          \[\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. Taylor expanded in h around 0

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

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

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

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

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

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          6. lower-/.f6423.8%

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        4. Applied rewrites23.8%

          \[\leadsto \color{blue}{\frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h}} \]
        5. Taylor expanded in d around -inf

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

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

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          3. lower-sqrt.f64N/A

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          4. lower-/.f6411.8%

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        7. Applied rewrites11.8%

          \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        8. Step-by-step derivation
          1. rem-square-sqrtN/A

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d}} \cdot \sqrt{\frac{h}{d}}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          2. sqrt-unprodN/A

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          3. lower-sqrt.f64N/A

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          4. lower-*.f6415.4%

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        9. Applied rewrites15.4%

          \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{h}{d} \cdot \frac{h}{d}}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]

        if -2e-51 < (*.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.9999999999999997e167

        1. Initial program 66.4%

          \[\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. Taylor expanded in h around 0

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

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

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

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

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

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          6. lower-/.f6423.8%

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
        4. Applied rewrites23.8%

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

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          2. mult-flipN/A

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
          3. *-commutativeN/A

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

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
          5. lower-/.f6423.8%

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
        6. Applied rewrites23.8%

          \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
        7. Taylor expanded in h around inf

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

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

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

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

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
          5. lower-/.f6439.2%

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

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

        if 4.9999999999999997e167 < (*.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.4%

          \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
          2. lift-*.f64N/A

            \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
          3. *-commutativeN/A

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

            \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. unpow2N/A

            \[\leadsto \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(\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) \]
          6. associate-*l*N/A

            \[\leadsto \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 - \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. associate-*l*N/A

            \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
          8. lower-*.f64N/A

            \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
          9. lift-/.f64N/A

            \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          10. lift-*.f64N/A

            \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          11. associate-/l*N/A

            \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          12. *-commutativeN/A

            \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          13. lower-*.f64N/A

            \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          14. lower-/.f64N/A

            \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          15. lift-*.f64N/A

            \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          16. count-2-revN/A

            \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          17. lower-+.f64N/A

            \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
          18. lower-*.f64N/A

            \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
        3. Applied rewrites67.9%

          \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
        4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          2. lift-pow.f64N/A

            \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          3. lift-/.f64N/A

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

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

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

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

            \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          8. pow-prod-downN/A

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

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

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

            \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          12. pow-prod-downN/A

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

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

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

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

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

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

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

            \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          20. lower-fabs.f6467.9%

            \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          21. lift-*.f64N/A

            \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
        5. Applied rewrites71.7%

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

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

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

        Alternative 11: 55.4% accurate, 0.5× speedup?

        \[\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 -1 \cdot 10^{-168}:\\ \;\;\;\;\frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 -1e-168)
             (/ (* (* -1.0 (* d (sqrt (/ h d)))) (sqrt (sqrt (* (/ d l) (/ d l))))) h)
             (if (<= t_0 5e+167)
               (* (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 <= -1e-168) {
        		tmp = ((-1.0 * (d * sqrt((h / d)))) * sqrt(sqrt(((d / l) * (d / l))))) / h;
        	} else if (t_0 <= 5e+167) {
        		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 <= (-1d-168)) then
                tmp = (((-1.0d0) * (d * sqrt((h / d)))) * sqrt(sqrt(((d / l) * (d / l))))) / h
            else if (t_0 <= 5d+167) 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 <= -1e-168) {
        		tmp = ((-1.0 * (d * Math.sqrt((h / d)))) * Math.sqrt(Math.sqrt(((d / l) * (d / l))))) / h;
        	} else if (t_0 <= 5e+167) {
        		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 <= -1e-168:
        		tmp = ((-1.0 * (d * math.sqrt((h / d)))) * math.sqrt(math.sqrt(((d / l) * (d / l))))) / h
        	elif t_0 <= 5e+167:
        		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 <= -1e-168)
        		tmp = Float64(Float64(Float64(-1.0 * Float64(d * sqrt(Float64(h / d)))) * sqrt(sqrt(Float64(Float64(d / l) * Float64(d / l))))) / h);
        	elseif (t_0 <= 5e+167)
        		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
        	else
        		tmp = Float64(abs(Float64(Float64(-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 <= -1e-168)
        		tmp = ((-1.0 * (d * sqrt((h / d)))) * sqrt(sqrt(((d / l) * (d / l))))) / h;
        	elseif (t_0 <= 5e+167)
        		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, -1e-168], N[(N[(N[(-1.0 * N[(d * N[Sqrt[N[(h / d), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[Sqrt[N[(N[(d / l), $MachinePrecision] * N[(d / l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / h), $MachinePrecision], If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]
        
        \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 -1 \cdot 10^{-168}:\\
        \;\;\;\;\frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h}\\
        
        \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
        \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
        
        \mathbf{else}:\\
        \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
        
        
        \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)))) < -1e-168

          1. Initial program 66.4%

            \[\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. Taylor expanded in h around 0

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

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

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

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

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

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            6. lower-/.f6423.8%

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          4. Applied rewrites23.8%

            \[\leadsto \color{blue}{\frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h}} \]
          5. Taylor expanded in d around -inf

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

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

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            3. lower-sqrt.f64N/A

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            4. lower-/.f6411.8%

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          7. Applied rewrites11.8%

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          8. Step-by-step derivation
            1. rem-square-sqrtN/A

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{\ell}}}}{h} \]
            2. sqrt-unprodN/A

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h} \]
            3. lower-sqrt.f64N/A

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h} \]
            4. lower-*.f6414.4%

              \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h} \]
          9. Applied rewrites14.4%

            \[\leadsto \frac{\left(-1 \cdot \left(d \cdot \sqrt{\frac{h}{d}}\right)\right) \cdot \sqrt{\sqrt{\frac{d}{\ell} \cdot \frac{d}{\ell}}}}{h} \]

          if -1e-168 < (*.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.9999999999999997e167

          1. Initial program 66.4%

            \[\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. Taylor expanded in h around 0

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

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

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

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

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

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            6. lower-/.f6423.8%

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
          4. Applied rewrites23.8%

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

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            2. mult-flipN/A

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
            3. *-commutativeN/A

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

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
            5. lower-/.f6423.8%

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
          6. Applied rewrites23.8%

            \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
          7. Taylor expanded in h around inf

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

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

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

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

              \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
            5. lower-/.f6439.2%

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

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

          if 4.9999999999999997e167 < (*.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.4%

            \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
            2. lift-*.f64N/A

              \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
            3. *-commutativeN/A

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

              \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. unpow2N/A

              \[\leadsto \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(\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) \]
            6. associate-*l*N/A

              \[\leadsto \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 - \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. associate-*l*N/A

              \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
            8. lower-*.f64N/A

              \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
            9. lift-/.f64N/A

              \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            10. lift-*.f64N/A

              \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            11. associate-/l*N/A

              \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            13. lower-*.f64N/A

              \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            14. lower-/.f64N/A

              \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            15. lift-*.f64N/A

              \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            16. count-2-revN/A

              \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            17. lower-+.f64N/A

              \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
            18. lower-*.f64N/A

              \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
          3. Applied rewrites67.9%

            \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
          4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            2. lift-pow.f64N/A

              \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            3. lift-/.f64N/A

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

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

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

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

              \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            8. pow-prod-downN/A

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

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

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

              \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            12. pow-prod-downN/A

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

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

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

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

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

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

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

              \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            20. lower-fabs.f6467.9%

              \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            21. lift-*.f64N/A

              \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
          5. Applied rewrites71.7%

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

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

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

          Alternative 12: 53.8% accurate, 0.5× speedup?

          \[\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 0:\\ \;\;\;\;\frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 0.0)
               (/ (* -1.0 (* d (sqrt (/ h l)))) h)
               (if (<= t_0 5e+167)
                 (* (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 <= 0.0) {
          		tmp = (-1.0 * (d * sqrt((h / l)))) / h;
          	} else if (t_0 <= 5e+167) {
          		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 <= 0.0d0) then
                  tmp = ((-1.0d0) * (d * sqrt((h / l)))) / h
              else if (t_0 <= 5d+167) 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 <= 0.0) {
          		tmp = (-1.0 * (d * Math.sqrt((h / l)))) / h;
          	} else if (t_0 <= 5e+167) {
          		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 <= 0.0:
          		tmp = (-1.0 * (d * math.sqrt((h / l)))) / h
          	elif t_0 <= 5e+167:
          		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 <= 0.0)
          		tmp = Float64(Float64(-1.0 * Float64(d * sqrt(Float64(h / l)))) / h);
          	elseif (t_0 <= 5e+167)
          		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
          	else
          		tmp = Float64(abs(Float64(Float64(-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 <= 0.0)
          		tmp = (-1.0 * (d * sqrt((h / l)))) / h;
          	elseif (t_0 <= 5e+167)
          		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, 0.0], N[(N[(-1.0 * N[(d * N[Sqrt[N[(h / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / h), $MachinePrecision], If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]
          
          \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 0:\\
          \;\;\;\;\frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h}\\
          
          \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
          \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
          
          \mathbf{else}:\\
          \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
          
          
          \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)))) < 0.0

            1. Initial program 66.4%

              \[\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. Taylor expanded in h around 0

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

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

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

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

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

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
              6. lower-/.f6423.8%

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            4. Applied rewrites23.8%

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

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

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

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
              4. sqrt-unprodN/A

                \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
              5. lower-sqrt.f64N/A

                \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
              6. lower-*.f6421.7%

                \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
              7. lift-*.f64N/A

                \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
              8. *-commutativeN/A

                \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{h} \]
              9. lower-*.f6421.7%

                \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{h} \]
            6. Applied rewrites21.7%

              \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{\color{blue}{h}} \]
            7. Taylor expanded in d around -inf

              \[\leadsto \frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h} \]
            8. Step-by-step derivation
              1. lower-*.f64N/A

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

                \[\leadsto \frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h} \]
              3. lower-sqrt.f64N/A

                \[\leadsto \frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h} \]
              4. lower-/.f6413.6%

                \[\leadsto \frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h} \]
            9. Applied rewrites13.6%

              \[\leadsto \frac{-1 \cdot \left(d \cdot \sqrt{\frac{h}{\ell}}\right)}{h} \]

            if 0.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)))) < 4.9999999999999997e167

            1. Initial program 66.4%

              \[\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. Taylor expanded in h around 0

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

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

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

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

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

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
              6. lower-/.f6423.8%

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
            4. Applied rewrites23.8%

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

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
              2. mult-flipN/A

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
              3. *-commutativeN/A

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

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
              5. lower-/.f6423.8%

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
            6. Applied rewrites23.8%

              \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
            7. Taylor expanded in h around inf

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

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

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

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

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
              5. lower-/.f6439.2%

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

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

            if 4.9999999999999997e167 < (*.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.4%

              \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
              2. lift-*.f64N/A

                \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
              3. *-commutativeN/A

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

                \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. unpow2N/A

                \[\leadsto \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(\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) \]
              6. associate-*l*N/A

                \[\leadsto \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 - \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. associate-*l*N/A

                \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
              8. lower-*.f64N/A

                \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
              9. lift-/.f64N/A

                \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              10. lift-*.f64N/A

                \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              11. associate-/l*N/A

                \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              13. lower-*.f64N/A

                \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              14. lower-/.f64N/A

                \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              15. lift-*.f64N/A

                \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              16. count-2-revN/A

                \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              17. lower-+.f64N/A

                \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
              18. lower-*.f64N/A

                \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
            3. Applied rewrites67.9%

              \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
            4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              2. lift-pow.f64N/A

                \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              3. lift-/.f64N/A

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

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

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

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

                \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              8. pow-prod-downN/A

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

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

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

                \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              12. pow-prod-downN/A

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

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

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

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

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

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

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

                \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              20. lower-fabs.f6467.9%

                \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              21. lift-*.f64N/A

                \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
            5. Applied rewrites71.7%

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

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

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

            Alternative 13: 52.8% accurate, 0.5× speedup?

            \[\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 0:\\ \;\;\;\;-\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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 0.0)
                 (- (/ d (* h (sqrt (/ l h)))))
                 (if (<= t_0 5e+167)
                   (* (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 <= 0.0) {
            		tmp = -(d / (h * sqrt((l / h))));
            	} else if (t_0 <= 5e+167) {
            		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 <= 0.0d0) then
                    tmp = -(d / (h * sqrt((l / h))))
                else if (t_0 <= 5d+167) 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 <= 0.0) {
            		tmp = -(d / (h * Math.sqrt((l / h))));
            	} else if (t_0 <= 5e+167) {
            		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 <= 0.0:
            		tmp = -(d / (h * math.sqrt((l / h))))
            	elif t_0 <= 5e+167:
            		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 <= 0.0)
            		tmp = Float64(-Float64(d / Float64(h * sqrt(Float64(l / h)))));
            	elseif (t_0 <= 5e+167)
            		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
            	else
            		tmp = Float64(abs(Float64(Float64(-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 <= 0.0)
            		tmp = -(d / (h * sqrt((l / h))));
            	elseif (t_0 <= 5e+167)
            		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, 0.0], (-N[(d / N[(h * N[Sqrt[N[(l / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t$95$0, 5e+167], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]]]
            
            \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 0:\\
            \;\;\;\;-\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\\
            
            \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+167}:\\
            \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
            
            \mathbf{else}:\\
            \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
            
            
            \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)))) < 0.0

              1. Initial program 66.4%

                \[\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 \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 - \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({\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 - \color{blue}{\frac{h}{\ell} \cdot \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                3. lift-*.f64N/A

                  \[\leadsto \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 - \frac{h}{\ell} \cdot \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                4. associate-*r*N/A

                  \[\leadsto \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 - \color{blue}{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                5. lift-pow.f64N/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                6. unpow2N/A

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

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \]
                8. lift-/.f64N/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \]
                9. frac-timesN/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\left(M \cdot D\right) \cdot \left(M \cdot D\right)}{\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)}}\right) \]
                10. frac-2negN/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(\left(M \cdot D\right) \cdot \left(M \cdot D\right)\right)}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}}\right) \]
                11. distribute-rgt-neg-outN/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\color{blue}{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}\right) \]
                12. distribute-lft-neg-outN/A

                  \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}{\color{blue}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                13. associate-*r/N/A

                  \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                14. lower-/.f64N/A

                  \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
              3. Applied rewrites53.2%

                \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot 0.5\right) \cdot \left(\left(-M\right) \cdot \left(D \cdot \left(D \cdot M\right)\right)\right)}{-4 \cdot \left(d \cdot d\right)}}\right) \]
              4. Applied rewrites28.6%

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

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

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

                  \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                3. lower-*.f6426.4%

                  \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
              7. Applied rewrites26.4%

                \[\leadsto -\color{blue}{\frac{d}{\sqrt{h \cdot \ell}}} \]
              8. Taylor expanded in h around inf

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

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

                  \[\leadsto -\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}} \]
                3. lower-/.f6412.5%

                  \[\leadsto -\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}} \]
              10. Applied rewrites12.5%

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

              if 0.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)))) < 4.9999999999999997e167

              1. Initial program 66.4%

                \[\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. Taylor expanded in h around 0

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

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

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

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

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

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
                6. lower-/.f6423.8%

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
              4. Applied rewrites23.8%

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

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
                2. mult-flipN/A

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{d \cdot \frac{1}{\ell}}}{h} \]
                3. *-commutativeN/A

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

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
                5. lower-/.f6423.8%

                  \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
              6. Applied rewrites23.8%

                \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{1}{\ell} \cdot d}}{h} \]
              7. Taylor expanded in h around inf

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

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

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

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

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                5. lower-/.f6439.2%

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

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

              if 4.9999999999999997e167 < (*.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.4%

                \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
                2. lift-*.f64N/A

                  \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
                3. *-commutativeN/A

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

                  \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
                5. unpow2N/A

                  \[\leadsto \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(\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) \]
                6. associate-*l*N/A

                  \[\leadsto \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 - \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. associate-*l*N/A

                  \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
                9. lift-/.f64N/A

                  \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                10. lift-*.f64N/A

                  \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                11. associate-/l*N/A

                  \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                12. *-commutativeN/A

                  \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                13. lower-*.f64N/A

                  \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                14. lower-/.f64N/A

                  \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                15. lift-*.f64N/A

                  \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                16. count-2-revN/A

                  \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                17. lower-+.f64N/A

                  \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                18. lower-*.f64N/A

                  \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
              3. Applied rewrites67.9%

                \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
              4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                3. lift-/.f64N/A

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

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

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

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

                  \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                8. pow-prod-downN/A

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

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

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

                  \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                12. pow-prod-downN/A

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

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

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

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

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

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

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

                  \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                20. lower-fabs.f6467.9%

                  \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                21. lift-*.f64N/A

                  \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
              5. Applied rewrites71.7%

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

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

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

              Alternative 14: 49.3% accurate, 0.8× speedup?

              \[\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 -1 \cdot 10^{-168}:\\ \;\;\;\;-\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\\ \mathbf{else}:\\ \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\ \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))))
                    -1e-168)
                 (- (/ d (* h (sqrt (/ l h)))))
                 (* (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)))) <= -1e-168) {
              		tmp = -(d / (h * sqrt((l / h))));
              	} 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)))) <= (-1d-168)) then
                      tmp = -(d / (h * sqrt((l / h))))
                  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)))) <= -1e-168) {
              		tmp = -(d / (h * Math.sqrt((l / h))));
              	} 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)))) <= -1e-168:
              		tmp = -(d / (h * math.sqrt((l / h))))
              	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)))) <= -1e-168)
              		tmp = Float64(-Float64(d / Float64(h * sqrt(Float64(l / h)))));
              	else
              		tmp = Float64(abs(Float64(Float64(-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)))) <= -1e-168)
              		tmp = -(d / (h * sqrt((l / h))));
              	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], -1e-168], (-N[(d / N[(h * N[Sqrt[N[(l / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), N[(N[Abs[N[((-d) / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 1.0), $MachinePrecision]]
              
              \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 -1 \cdot 10^{-168}:\\
              \;\;\;\;-\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}}\\
              
              \mathbf{else}:\\
              \;\;\;\;\left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot 1\\
              
              
              \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)))) < -1e-168

                1. Initial program 66.4%

                  \[\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 \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 - \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({\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 - \color{blue}{\frac{h}{\ell} \cdot \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                  3. lift-*.f64N/A

                    \[\leadsto \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 - \frac{h}{\ell} \cdot \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                  4. associate-*r*N/A

                    \[\leadsto \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 - \color{blue}{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                  5. lift-pow.f64N/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                  6. unpow2N/A

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

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \]
                  8. lift-/.f64N/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \]
                  9. frac-timesN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\left(M \cdot D\right) \cdot \left(M \cdot D\right)}{\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  10. frac-2negN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(\left(M \cdot D\right) \cdot \left(M \cdot D\right)\right)}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}}\right) \]
                  11. distribute-rgt-neg-outN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\color{blue}{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}\right) \]
                  12. distribute-lft-neg-outN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}{\color{blue}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  13. associate-*r/N/A

                    \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  14. lower-/.f64N/A

                    \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                3. Applied rewrites53.2%

                  \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot 0.5\right) \cdot \left(\left(-M\right) \cdot \left(D \cdot \left(D \cdot M\right)\right)\right)}{-4 \cdot \left(d \cdot d\right)}}\right) \]
                4. Applied rewrites28.6%

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

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

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

                    \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                  3. lower-*.f6426.4%

                    \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                7. Applied rewrites26.4%

                  \[\leadsto -\color{blue}{\frac{d}{\sqrt{h \cdot \ell}}} \]
                8. Taylor expanded in h around inf

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

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

                    \[\leadsto -\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}} \]
                  3. lower-/.f6412.5%

                    \[\leadsto -\frac{d}{h \cdot \sqrt{\frac{\ell}{h}}} \]
                10. Applied rewrites12.5%

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

                if -1e-168 < (*.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.4%

                  \[\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 \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}}\right) \]
                  2. lift-*.f64N/A

                    \[\leadsto \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 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
                  3. *-commutativeN/A

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

                    \[\leadsto \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(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
                  5. unpow2N/A

                    \[\leadsto \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(\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) \]
                  6. associate-*l*N/A

                    \[\leadsto \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 - \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. associate-*l*N/A

                    \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
                  8. lower-*.f64N/A

                    \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
                  9. lift-/.f64N/A

                    \[\leadsto \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 - \color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  10. lift-*.f64N/A

                    \[\leadsto \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 - \frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  11. associate-/l*N/A

                    \[\leadsto \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 - \color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  12. *-commutativeN/A

                    \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  13. lower-*.f64N/A

                    \[\leadsto \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 - \color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  14. lower-/.f64N/A

                    \[\leadsto \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(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  15. lift-*.f64N/A

                    \[\leadsto \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{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  16. count-2-revN/A

                    \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  17. lower-+.f64N/A

                    \[\leadsto \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{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)\right) \]
                  18. lower-*.f64N/A

                    \[\leadsto \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{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right)}\right) \]
                3. Applied rewrites67.9%

                  \[\leadsto \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 - \color{blue}{\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)}\right) \]
                4. 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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  2. lift-pow.f64N/A

                    \[\leadsto \left(\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  3. lift-/.f64N/A

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

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

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

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

                    \[\leadsto \left({\left(\frac{d}{h}\right)}^{\frac{1}{2}} \cdot {\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  8. pow-prod-downN/A

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

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

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

                    \[\leadsto \left|\color{blue}{{\left(\frac{d}{h} \cdot \frac{d}{\ell}\right)}^{\frac{1}{2}}}\right| \cdot \left(1 - \left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  12. pow-prod-downN/A

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

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

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

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

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

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

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

                    \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  20. lower-fabs.f6467.9%

                    \[\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                  21. lift-*.f64N/A

                    \[\leadsto \left|\color{blue}{{\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{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot \left(M \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right)\right) \]
                5. Applied rewrites71.7%

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

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

                    \[\leadsto \left|\frac{-d}{\sqrt{h \cdot \ell}}\right| \cdot \color{blue}{1} \]
                8. Recombined 2 regimes into one program.
                9. Add Preprocessing

                Alternative 15: 40.4% accurate, 5.7× speedup?

                \[\begin{array}{l} \mathbf{if}\;d \leq 3.1 \cdot 10^{-227}:\\ \;\;\;\;-\frac{d}{\sqrt{h \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{d \cdot \sqrt{\frac{h}{\ell}}}{h}\\ \end{array} \]
                (FPCore (d h l M D)
                 :precision binary64
                 (if (<= d 3.1e-227) (- (/ d (sqrt (* h l)))) (/ (* d (sqrt (/ h l))) h)))
                double code(double d, double h, double l, double M, double D) {
                	double tmp;
                	if (d <= 3.1e-227) {
                		tmp = -(d / sqrt((h * l)));
                	} else {
                		tmp = (d * sqrt((h / l))) / h;
                	}
                	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 <= 3.1d-227) then
                        tmp = -(d / sqrt((h * l)))
                    else
                        tmp = (d * sqrt((h / l))) / h
                    end if
                    code = tmp
                end function
                
                public static double code(double d, double h, double l, double M, double D) {
                	double tmp;
                	if (d <= 3.1e-227) {
                		tmp = -(d / Math.sqrt((h * l)));
                	} else {
                		tmp = (d * Math.sqrt((h / l))) / h;
                	}
                	return tmp;
                }
                
                def code(d, h, l, M, D):
                	tmp = 0
                	if d <= 3.1e-227:
                		tmp = -(d / math.sqrt((h * l)))
                	else:
                		tmp = (d * math.sqrt((h / l))) / h
                	return tmp
                
                function code(d, h, l, M, D)
                	tmp = 0.0
                	if (d <= 3.1e-227)
                		tmp = Float64(-Float64(d / sqrt(Float64(h * l))));
                	else
                		tmp = Float64(Float64(d * sqrt(Float64(h / l))) / h);
                	end
                	return tmp
                end
                
                function tmp_2 = code(d, h, l, M, D)
                	tmp = 0.0;
                	if (d <= 3.1e-227)
                		tmp = -(d / sqrt((h * l)));
                	else
                		tmp = (d * sqrt((h / l))) / h;
                	end
                	tmp_2 = tmp;
                end
                
                code[d_, h_, l_, M_, D_] := If[LessEqual[d, 3.1e-227], (-N[(d / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), N[(N[(d * N[Sqrt[N[(h / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / h), $MachinePrecision]]
                
                \begin{array}{l}
                \mathbf{if}\;d \leq 3.1 \cdot 10^{-227}:\\
                \;\;\;\;-\frac{d}{\sqrt{h \cdot \ell}}\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{d \cdot \sqrt{\frac{h}{\ell}}}{h}\\
                
                
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if d < 3.09999999999999979e-227

                  1. Initial program 66.4%

                    \[\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 \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 - \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({\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 - \color{blue}{\frac{h}{\ell} \cdot \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                    3. lift-*.f64N/A

                      \[\leadsto \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 - \frac{h}{\ell} \cdot \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                    4. associate-*r*N/A

                      \[\leadsto \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 - \color{blue}{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                    5. lift-pow.f64N/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                    6. unpow2N/A

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

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \]
                    8. lift-/.f64N/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \]
                    9. frac-timesN/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\left(M \cdot D\right) \cdot \left(M \cdot D\right)}{\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)}}\right) \]
                    10. frac-2negN/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(\left(M \cdot D\right) \cdot \left(M \cdot D\right)\right)}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}}\right) \]
                    11. distribute-rgt-neg-outN/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\color{blue}{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}\right) \]
                    12. distribute-lft-neg-outN/A

                      \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}{\color{blue}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                    13. associate-*r/N/A

                      \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                    14. lower-/.f64N/A

                      \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  3. Applied rewrites53.2%

                    \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot 0.5\right) \cdot \left(\left(-M\right) \cdot \left(D \cdot \left(D \cdot M\right)\right)\right)}{-4 \cdot \left(d \cdot d\right)}}\right) \]
                  4. Applied rewrites28.6%

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

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

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

                      \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                    3. lower-*.f6426.4%

                      \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                  7. Applied rewrites26.4%

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

                  if 3.09999999999999979e-227 < d

                  1. Initial program 66.4%

                    \[\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. Taylor expanded in h around 0

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

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

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

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

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

                      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
                    6. lower-/.f6423.8%

                      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
                  4. Applied rewrites23.8%

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

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

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

                      \[\leadsto \frac{\sqrt{d \cdot h} \cdot \sqrt{\frac{d}{\ell}}}{h} \]
                    4. sqrt-unprodN/A

                      \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
                    5. lower-sqrt.f64N/A

                      \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
                    6. lower-*.f6421.7%

                      \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
                    7. lift-*.f64N/A

                      \[\leadsto \frac{\sqrt{\left(d \cdot h\right) \cdot \frac{d}{\ell}}}{h} \]
                    8. *-commutativeN/A

                      \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{h} \]
                    9. lower-*.f6421.7%

                      \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{h} \]
                  6. Applied rewrites21.7%

                    \[\leadsto \frac{\sqrt{\left(h \cdot d\right) \cdot \frac{d}{\ell}}}{\color{blue}{h}} \]
                  7. Taylor expanded in d around 0

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

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

                      \[\leadsto \frac{d \cdot \sqrt{\frac{h}{\ell}}}{h} \]
                    3. lower-/.f6437.2%

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

                    \[\leadsto \frac{d \cdot \sqrt{\frac{h}{\ell}}}{h} \]
                3. Recombined 2 regimes into one program.
                4. Add Preprocessing

                Alternative 16: 26.4% accurate, 9.2× speedup?

                \[-\frac{d}{\sqrt{h \cdot \ell}} \]
                (FPCore (d h l M D) :precision binary64 (- (/ d (sqrt (* h l)))))
                double code(double d, double h, double l, double M, double D) {
                	return -(d / sqrt((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((h * l)))
                end function
                
                public static double code(double d, double h, double l, double M, double D) {
                	return -(d / Math.sqrt((h * l)));
                }
                
                def code(d, h, l, M, D):
                	return -(d / math.sqrt((h * l)))
                
                function code(d, h, l, M, D)
                	return Float64(-Float64(d / sqrt(Float64(h * l))))
                end
                
                function tmp = code(d, h, l, M, D)
                	tmp = -(d / sqrt((h * l)));
                end
                
                code[d_, h_, l_, M_, D_] := (-N[(d / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision])
                
                -\frac{d}{\sqrt{h \cdot \ell}}
                
                Derivation
                1. Initial program 66.4%

                  \[\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 \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 - \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({\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 - \color{blue}{\frac{h}{\ell} \cdot \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                  3. lift-*.f64N/A

                    \[\leadsto \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 - \frac{h}{\ell} \cdot \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)}\right) \]
                  4. associate-*r*N/A

                    \[\leadsto \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 - \color{blue}{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                  5. lift-pow.f64N/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \]
                  6. unpow2N/A

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

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \]
                  8. lift-/.f64N/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \]
                  9. frac-timesN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\left(M \cdot D\right) \cdot \left(M \cdot D\right)}{\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  10. frac-2negN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(\left(M \cdot D\right) \cdot \left(M \cdot D\right)\right)}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}}\right) \]
                  11. distribute-rgt-neg-outN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\color{blue}{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}}{\mathsf{neg}\left(\left(2 \cdot d\right) \cdot \left(2 \cdot d\right)\right)}\right) \]
                  12. distribute-lft-neg-outN/A

                    \[\leadsto \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{h}{\ell} \cdot \frac{1}{2}\right) \cdot \frac{\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)}{\color{blue}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  13. associate-*r/N/A

                    \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                  14. lower-/.f64N/A

                    \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot \frac{1}{2}\right) \cdot \left(\left(M \cdot D\right) \cdot \left(\mathsf{neg}\left(M \cdot D\right)\right)\right)}{\left(\mathsf{neg}\left(2 \cdot d\right)\right) \cdot \left(2 \cdot d\right)}}\right) \]
                3. Applied rewrites53.2%

                  \[\leadsto \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 - \color{blue}{\frac{\left(\frac{h}{\ell} \cdot 0.5\right) \cdot \left(\left(-M\right) \cdot \left(D \cdot \left(D \cdot M\right)\right)\right)}{-4 \cdot \left(d \cdot d\right)}}\right) \]
                4. Applied rewrites28.6%

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

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

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

                    \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                  3. lower-*.f6426.4%

                    \[\leadsto -\frac{d}{\sqrt{h \cdot \ell}} \]
                7. Applied rewrites26.4%

                  \[\leadsto -\color{blue}{\frac{d}{\sqrt{h \cdot \ell}}} \]
                8. Add Preprocessing

                Reproduce

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