\left({\left(\frac{d}{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)\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) \le 4.2571535514631191 \cdot 10^{273}:\\
\;\;\;\;\left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{\sqrt[3]{h} \cdot \sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(\left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{1}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{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)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\sqrt[3]{\left(\left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{\sqrt[3]{h} \cdot \sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{1}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)\right) \cdot \left(1 - \frac{\left(1 \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot h}{2 \cdot \ell}\right)} \cdot \sqrt[3]{\left(\left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{\sqrt[3]{h} \cdot \sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{1}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)\right) \cdot \left(1 - \frac{\left(1 \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot h}{2 \cdot \ell}\right)}\right) \cdot \sqrt[3]{\left(\left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{\sqrt[3]{h} \cdot \sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\sqrt[3]{h}}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left({\left(\frac{\sqrt[3]{d} \cdot \sqrt[3]{d}}{1}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{\sqrt[3]{d}}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)\right) \cdot \left(1 - \frac{\left(1 \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot h}{2 \cdot \ell}\right)}\\
\end{array}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))));
}
double code(double d, double h, double l, double M, double D) {
double VAR;
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)))) <= 4.257153551463119e+273)) {
VAR = ((pow(((cbrt(d) * cbrt(d)) / (cbrt(h) * cbrt(h))), (1.0 / 2.0)) * pow((cbrt(d) / cbrt(h)), (1.0 / 2.0))) * ((pow(((cbrt(d) * cbrt(d)) / 1.0), (1.0 / 2.0)) * pow((cbrt(d) / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))));
} else {
VAR = ((cbrt((((pow(((cbrt(d) * cbrt(d)) / (cbrt(h) * cbrt(h))), (1.0 / 2.0)) * pow((cbrt(d) / cbrt(h)), (1.0 / 2.0))) * (pow(((cbrt(d) * cbrt(d)) / 1.0), (1.0 / 2.0)) * pow((cbrt(d) / l), (1.0 / 2.0)))) * (1.0 - (((1.0 * pow(((M * D) / (2.0 * d)), 2.0)) * h) / (2.0 * l))))) * cbrt((((pow(((cbrt(d) * cbrt(d)) / (cbrt(h) * cbrt(h))), (1.0 / 2.0)) * pow((cbrt(d) / cbrt(h)), (1.0 / 2.0))) * (pow(((cbrt(d) * cbrt(d)) / 1.0), (1.0 / 2.0)) * pow((cbrt(d) / l), (1.0 / 2.0)))) * (1.0 - (((1.0 * pow(((M * D) / (2.0 * d)), 2.0)) * h) / (2.0 * l)))))) * cbrt((((pow(((cbrt(d) * cbrt(d)) / (cbrt(h) * cbrt(h))), (1.0 / 2.0)) * pow((cbrt(d) / cbrt(h)), (1.0 / 2.0))) * (pow(((cbrt(d) * cbrt(d)) / 1.0), (1.0 / 2.0)) * pow((cbrt(d) / l), (1.0 / 2.0)))) * (1.0 - (((1.0 * pow(((M * D) / (2.0 * d)), 2.0)) * h) / (2.0 * l))))));
}
return VAR;
}



Bits error versus d



Bits error versus h



Bits error versus l



Bits error versus M



Bits error versus D
Results
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)))) < 4.257153551463119e+273Initial program 13.0
rmApplied add-cube-cbrt13.3
Applied add-cube-cbrt13.5
Applied times-frac13.5
Applied unpow-prod-down12.5
rmApplied *-un-lft-identity12.5
Applied add-cube-cbrt12.8
Applied times-frac12.8
Applied unpow-prod-down9.6
rmApplied associate-*l*9.2
if 4.257153551463119e+273 < (* (* (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)))) Initial program 63.2
rmApplied add-cube-cbrt63.2
Applied add-cube-cbrt63.2
Applied times-frac63.2
Applied unpow-prod-down46.6
rmApplied *-un-lft-identity46.6
Applied add-cube-cbrt46.7
Applied times-frac46.7
Applied unpow-prod-down41.4
rmApplied associate-*l/41.4
Applied frac-times32.6
rmApplied add-cube-cbrt32.8
Final simplification15.8
herbie shell --seed 2020105
(FPCore (d h l M D)
:name "Henrywood and Agarwal, Equation (12)"
:precision binary64
(* (* (pow (/ d h) (/ 1 2)) (pow (/ d l) (/ 1 2))) (- 1 (* (* (/ 1 2) (pow (/ (* M D) (* 2 d)) 2)) (/ h l)))))