<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    ajor
   </journal-id>
   <journal-title-group>
    <journal-title>
     American Journal of Operations Research
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2160-8830
   </issn>
   <issn publication-format="print">
    2160-8849
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/ajor.2025.155008
   </article-id>
   <article-id pub-id-type="publisher-id">
    ajor-145281
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Density Functions and Descriptive Statistics for Distance Measures in Cartesian Space 
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Patrick R.
      </surname>
      <given-names>
       McMullen
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aSchool of Business, Wake Forest University, Winston-Salem, USA
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     29
    </day> 
    <month>
     08
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    15
   </volume> 
   <issue>
    05
   </issue>
   <fpage>
    147
   </fpage>
   <lpage>
    167
   </lpage>
   <history>
    <date date-type="received">
     <day>
      7,
     </day>
     <month>
      July
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      26,
     </day>
     <month>
      July
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      26,
     </day>
     <month>
      August
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    This research provides density functions and descriptive statistics for the distance between points for basic shapes in Cartesian space. Both Euclidean and Rectilinear Distances are determined for these shapes. The shapes are in the unit line, the unit square, unit circle, unit sphere and unit triangle. In all instances, an exact, symbolic solution is sought, but there are four occasions where that is not possible—for these cases, a reasonable approximate solution is obtained. For each distance measure, mean, median and standard deviation measures are provided as well.
   </abstract>
   <kwd-group> 
    <kwd>
     Density
    </kwd> 
    <kwd>
      Probability
    </kwd> 
    <kwd>
      Stochastic
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Density functions are an important part of probability and statistics. They illustrate continuous probability distributions, giving us a visual image of possible outcomes and their associated likelihoods of occurring. These density functions can also be exploited so that we can also learn the expected value, standard deviation and other statistics associated with continuous random variables <xref ref-type="bibr" rid="scirp.145281-1">
     [1]
    </xref> <xref ref-type="bibr" rid="scirp.145281-2">
     [2]
    </xref>.</p>
   <p>The research presented here explores the density functions associated with distances between two points in Cartesian Space. The space that is of interest to us is confined to unit shapes: the unit line, the unit square, the unit cube, the unit circle, the unit sphere and the unit triangle. We are interested in two types of distance: Euclidean, or straight-line distance, and Rectilinear distance—a distance that is broken into its horizontal and vertical components.</p>
   <p>The two points which are used as endpoints for the line lengths we measure are always independent and uniformly distributed in the interval spanning the minimum and maximum possible values for the interval of interest. For example, in the unit square, both points have minimum and maximum values of 0 and 1 because 0 is the minimum possible value in the unit square, and 1 is the maximum possible value in the unit square. All values on this (0, 1) interval are equally likely to occur. Additionally, whatever locations are chosen for one point are completely independent of the locations for the other point.</p>
   <p>In all scenarios, the exact distances are sought in symbolic form. This, however, is not always feasible for the distance measures we seek due to the complexities associated with symbolic integration of distance measures. In such cases, we seek a numerical approximation that is considered reasonable in terms of both accuracy and computational effort.</p>
   <p>The general intent of this paper is essentially twofold: first, it is intended to provide investigators with some information about important density functions. Second, while some of these density functions have already been determined, some have not, and it is intended to provide a convenient aggregate source of information for those interested.</p>
   <p>The following sections discuss the probability density function and show how the distance and density functions are determined for each distance measure. The numerical estimation process for density functions is presented, along with descriptive statistics. Conclusions are also offered.</p>
  </sec><sec id="s2">
   <title>2. Background</title>
   <p>The continuous random variables of interest here are essentially simplistic measures of distance in the unit line, unit square, unit cube, unit circle, unit cube, and the unit triangle. These length measures are Euclidean (straight-line) distances and Rectilinear distances—distances as a sum of their vertical and horizontal components.</p>
   <p>Consider a continuous random variable 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       X 
     </mi> 
    </math>. This random variable has the density function, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        P 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          a 
        </mi> 
        <mo>
          ≤ 
        </mo> 
        <mi>
          X 
        </mi> 
        <mo>
          ≤ 
        </mo> 
        <mi>
          b 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <msubsup> 
         <mo>
           ∫ 
         </mo> 
         <mi>
           a 
         </mi> 
         <mi>
           b 
         </mi> 
        </msubsup> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            x 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           x 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
     </mrow> 
    </math>(1)</p>
   <p>Consider then, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        F 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> to be the cumulative distribution of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       X 
     </mi> 
    </math>:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        F 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <msubsup> 
         <mo>
           ∫ 
         </mo> 
         <mrow> 
          <mo>
            − 
          </mo> 
          <mi>
            ∞ 
          </mi> 
         </mrow> 
         <mi>
           x 
         </mi> 
        </msubsup> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            u 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           u 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
     </mrow> 
    </math>(2)</p>
   <p>The density function is the first derivative of the cumulative density function. The density function is related to the cumulative distribution function via the following:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mrow> 
       <mrow> 
        <mtext>
          d 
        </mtext> 
        <mrow> 
         <mo>
           [ 
         </mo> 
         <mrow> 
          <mi>
            F 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mi>
             x 
           </mi> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mo>
           ] 
         </mo> 
        </mrow> 
       </mrow> 
       <mo>
         / 
       </mo> 
       <mrow> 
        <mtext>
          d 
        </mtext> 
        <mi>
          x 
        </mi> 
       </mrow> 
      </mrow> 
     </mrow> 
    </math>(3)</p>
   <p>It should also be noted that the total area under the density function is unity. Mathematically, this is as follows:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        F 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <msubsup> 
         <mo>
           ∫ 
         </mo> 
         <mi>
           a 
         </mi> 
         <mi>
           b 
         </mi> 
        </msubsup> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            x 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           x 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math>(4)</p>
   <p>For this research, all stochastic input entities are uniformly distributed on the 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          a 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          b 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> interval. This means that the lower boundary is no less than 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       a 
     </mi> 
    </math> and the upper boundary is no more than 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       b 
     </mi> 
    </math>. All values between 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       a 
     </mi> 
    </math> and 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       b 
     </mi> 
    </math> are equally likely to occur, as shown in <xref ref-type="fig" rid="fig1">
     Figure 1
    </xref>.</p>
   <fig id="fig1" position="float">
    <label>Figure 1</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 1. Density function.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId41.jpeg?20250829030811" />
   </fig>
  </sec><sec id="s3">
   <title>3. Methodology</title>
   <p>Each subsection below addresses a specific distance distribution and is broken into Euclidean and Rectilinear Distance measures.</p>
   <sec id="s3_1">
    <title>3.1. Distance in the Unit Line</title>
    <p>We are interested in finding the density function for the difference between 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> ( 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>). If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> are independent and uniformly distributed on (0,1) in the unit square, we then have the following probabilistic statement:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mrow> 
          <mo>
            | 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            | 
          </mo> 
         </mrow> 
         <mo>
           &gt; 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>(5)</p>
    <p>Here, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math> is the total area of the two shaded right triangles, as shown in the unit square in <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref> <xref ref-type="bibr" rid="scirp.145281-3">
      [3]
     </xref>-<xref ref-type="bibr" rid="scirp.145281-5">
      [5]
     </xref>.</p>
    <fig id="fig2" position="float">
     <label>Figure 2</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 2. Diagonal strip2.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId56.jpeg?20250829030816" />
    </fig>
    <p>The total area that is non-shaded is 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         1 
       </mn> 
       <mo>
         − 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>, which can be related to 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mrow> 
          <mo>
            | 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            | 
          </mo> 
         </mrow> 
         <mo>
           &lt; 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> via the following:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mrow> 
          <mo>
            | 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            | 
          </mo> 
         </mrow> 
         <mo>
           &lt; 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         − 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>(6)</p>
    <p>The right-hand side is a cumulative density function, since it accounts for the totality of the non-shaded area. Taking the first derivative of the right-hand side with respect to “ 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        d 
      </mi> 
     </math>”, we have the following:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mrow> 
          <mo>
            | 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            | 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mi>
          d 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          [ 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           − 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               1 
             </mn> 
             <mo>
               − 
             </mo> 
             <mi>
               d 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
        <mo>
          ] 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         2 
       </mn> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           − 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(7)</p>
    <p>Thus, the density function for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math> on the unit square appears as follows in <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref>.</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 3. Line density.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId69.jpeg?20250829030816" />
    </fig>
   </sec>
   <sec id="s3_2">
    <title>3.2. Distance in the Unit Square</title>
    <p>There are two different distance measures in the unit square that we are interested in: the Euclidean distance and the Rectilinear distance. For each, both points are uniformly distributed and in the (0, 1) interval, and shown in <xref ref-type="fig" rid="fig4(a)">
      Figure 4(a)
     </xref> and <xref ref-type="fig" rid="fig4(b)">
      Figure 4(b)
     </xref>.</p>
    <p>For Euclidean distance, our distance measure is the following <xref ref-type="bibr" rid="scirp.145281-3">
      [3]
     </xref>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(8)</p>
    <p>This distance is on the (0, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msqrt> 
        <mn>
          2 
        </mn> 
       </msqrt> 
      </mrow> 
     </math>) interval. This equation can also be shown as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              Y 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              Y 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>(9)</p>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1040930-rId77.jpeg?20250829030821" /></p>(b)<xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 4. (a) Euclidean 2d; (b) Rectilinear 2d.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId76.jpeg?20250829030821" />
    </fig>
    <p>The reasoning for deriving the density function for the unit line in Equation (9) and <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref> can be extrapolated as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           &gt; 
         </mo> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>(10)</p>
    <p>From this, we can see that two components are added, permitting us to use the convolution to find the density function for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        d 
      </mi> 
     </math> <xref ref-type="bibr" rid="scirp.145281-6">
      [6]
     </xref>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mo>
           ∗ 
         </mo> 
         <mi>
           g 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <mrow> 
         <msubsup> 
          <mo>
            ∫ 
          </mo> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mi>
             ∞ 
           </mi> 
          </mrow> 
          <mi>
            ∞ 
          </mi> 
         </msubsup> 
         <mrow> 
          <mi>
            f 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mi>
             t 
           </mi> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            ∗ 
          </mo> 
          <mi>
            g 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mi>
              d 
            </mi> 
            <mo>
              − 
            </mo> 
            <mi>
              t 
            </mi> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mtext>
            d 
          </mtext> 
          <mi>
            t 
          </mi> 
         </mrow> 
        </mrow> 
       </mstyle> 
      </mrow> 
     </math>(11)</p>
    <p>This provides us with the density function:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mtable columnalign="left"> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               2 
             </mn> 
             <mi>
               d 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mi>
                 π 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mn>
                 4 
               </mn> 
               <mi>
                 d 
               </mi> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
             <mi>
               d 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
               <msup> 
                <mrow> 
                 <mi>
                   sin 
                 </mi> 
                </mrow> 
                <mrow> 
                 <mo>
                   − 
                 </mo> 
                 <mn>
                   1 
                 </mn> 
                </mrow> 
               </msup> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mrow> 
                 <mfrac> 
                  <mrow> 
                   <msup> 
                    <mi>
                      d 
                    </mi> 
                    <mn>
                      2 
                    </mn> 
                   </msup> 
                   <mo>
                     − 
                   </mo> 
                   <mn>
                     2 
                   </mn> 
                  </mrow> 
                  <mrow> 
                   <msup> 
                    <mi>
                      d 
                    </mi> 
                    <mn>
                      2 
                    </mn> 
                   </msup> 
                  </mrow> 
                 </mfrac> 
                </mrow> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mfrac> 
                <mrow> 
                 <mn>
                   4 
                 </mn> 
                 <mo>
                   − 
                 </mo> 
                 <mn>
                   4 
                 </mn> 
                 <msup> 
                  <mi>
                    d 
                  </mi> 
                  <mn>
                    2 
                  </mn> 
                 </msup> 
                </mrow> 
                <mrow> 
                 <msqrt> 
                  <mrow> 
                   <msup> 
                    <mi>
                      d 
                    </mi> 
                    <mn>
                      2 
                    </mn> 
                   </msup> 
                   <mo>
                     − 
                   </mo> 
                   <mn>
                     1 
                   </mn> 
                  </mrow> 
                 </msqrt> 
                </mrow> 
               </mfrac> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <msqrt> 
              <mn>
                2 
              </mn> 
             </msqrt> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               &gt; 
             </mo> 
             <msqrt> 
              <mn>
                2 
              </mn> 
             </msqrt> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </mrow> 
       </mrow> 
      </mrow> 
     </math>(12)</p>
    <p>For Rectilinear Distance, our distance measure is on the (0, 2) interval and is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(13)</p>
    <p>Because two components are added, we can once again convolve the two components directly above to obtain the density function for the rectilinear distance in the unit square, which is as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mtable columnalign="left"> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mfrac> 
              <mn>
                2 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msup> 
               <mo>
                 − 
               </mo> 
               <mn>
                 6 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 6 
               </mn> 
               <mi>
                 d 
               </mi> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mo>
                 − 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <msup> 
              <mrow> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mrow> 
                 <mi>
                   d 
                 </mi> 
                 <mo>
                   − 
                 </mo> 
                 <mn>
                   2 
                 </mn> 
                </mrow> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
              </mrow> 
              <mn>
                3 
              </mn> 
             </msup> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               &gt; 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </mrow> 
       </mrow> 
      </mrow> 
     </math>(14)</p>
    <p>A comparison of these two density functions is shown in <xref ref-type="fig" rid="fig5">
      Figure 5
     </xref> below.</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 5. Density unit square.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId90.jpeg?20250829030824" />
    </fig>
   </sec>
   <sec id="s3_3">
    <title>3.3. Distance in the Unit Cube</title>
    <p>In the unit cube, we have two points each with X, Y and Z coordinates, all uniformly distributed in the (0, 1) interval. This is shown in <xref ref-type="fig" rid="fig6(a)">
      Figure 6(a)
     </xref> and <xref ref-type="fig" rid="fig6(b)">
      Figure 6(b)
     </xref>.</p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1040930-rId92.jpeg?20250829030825" /></p>(b)<xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 6. (a) Euclidean 3D; (b) Rectilinear 3D.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId91.jpeg?20250829030826" />
    </fig>
    <p>The Euclidean Distance between two points, each point having three coordinates, is as follows</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Z 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Z 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(15)</p>
    <p>This can also be written as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              X 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              Y 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              Y 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              Z 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mi>
              Z 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>(16)</p>
    <p>One will note that the above now has three components and has been added. As such, the convolution can be applied twice here to obtain the density function for the distance measure above. The first convolution involves the distance density involving X and Y from the unit square. The second convolution involves the convolution obtained by employing (X and Y) with Z. This density function is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mtable columnalign="left"> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 6 
               </mn> 
               <mi>
                 d 
               </mi> 
               <mi>
                 π 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mn>
                 8 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 − 
               </mo> 
               <mn>
                 4 
               </mn> 
               <mi>
                 π 
               </mi> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
             <mi>
               d 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  a 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  a 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  a 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  a 
                </mi> 
                <mn>
                  4 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <msqrt> 
              <mn>
                2 
              </mn> 
             </msqrt> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mo>
               − 
             </mo> 
             <mi>
               d 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
               <mo>
                 − 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  4 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  5 
                </mn> 
               </msub> 
               <mo>
                 − 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  6 
                </mn> 
               </msub> 
               <mo>
                 + 
               </mo> 
               <msub> 
                <mi>
                  b 
                </mi> 
                <mn>
                  7 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <msqrt> 
              <mn>
                3 
              </mn> 
             </msqrt> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               &gt; 
             </mo> 
             <msqrt> 
              <mn>
                3 
              </mn> 
             </msqrt> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </mrow> 
       </mrow> 
      </mrow> 
     </math>(17)</p>
    <p>Where:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <msup> 
        <mrow> 
         <mi>
           sin 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
          </mrow> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (18)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <msup> 
        <mrow> 
         <mi>
           tan 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msqrt> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (19)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mn>
          3 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          4 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           2 
         </mn> 
         <mi>
           π 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           3 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         − 
       </mo> 
       <mn>
         4 
       </mn> 
       <mi>
         d 
       </mi> 
       <mi>
         π 
       </mi> 
       <mo>
         + 
       </mo> 
       <mn>
         3 
       </mn> 
       <mi>
         π 
       </mi> 
       <mo>
         − 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mn>
          2 
        </mn> 
       </mfrac> 
      </mrow> 
     </math> (20)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mn>
          4 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           8 
         </mn> 
         <msup> 
          <mi>
            d 
          </mi> 
          <mn>
            4 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <mn>
           4 
         </mn> 
         <msup> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <mn>
           4 
         </mn> 
        </mrow> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msqrt> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (21)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         8 
       </mn> 
       <mi>
         d 
       </mi> 
       <msup> 
        <mrow> 
         <mi>
           tan 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              3 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             3 
           </mn> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </msqrt> 
           <mo>
             ⋅ 
           </mo> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                3 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mi>
               d 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (22)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mo>
         − 
       </mo> 
       <mn>
         4 
       </mn> 
       <msup> 
        <mi>
          d 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <msup> 
        <mrow> 
         <mi>
           cot 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </msqrt> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (23)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          3 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
       <mi>
         d 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           d 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           2 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <msup> 
        <mrow> 
         <mi>
           tan 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </msqrt> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (24)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          4 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           8 
         </mn> 
         <msup> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           − 
         </mo> 
         <mn>
           4 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <msup> 
        <mrow> 
         <mi>
           sin 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             3 
           </mn> 
          </mrow> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (25)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          5 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         16 
       </mn> 
       <msup> 
        <mrow> 
         <mi>
           sin 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </msqrt> 
          </mrow> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </msqrt> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (26)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          6 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mn>
         16 
       </mn> 
       <msup> 
        <mrow> 
         <mi>
           sin 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mn>
            1 
          </mn> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </msqrt> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (27)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mn>
          7 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             d 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             5 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msqrt> 
            <mrow> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               − 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </msqrt> 
           <mo>
             − 
           </mo> 
           <mn>
             8 
           </mn> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mn>
             16 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
          </mrow> 
         </msqrt> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (28)</p>
    <p>As is the case for rectilinear distance in the unit square, we can continue the logic for the three-dimensional case. The rectilinear distance between two points in the unit cube is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(29)</p>
    <p>The density function is as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mtable columnalign="left"> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mrow> 
               <mn>
                 15 
               </mn> 
              </mrow> 
             </mfrac> 
             <msup> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               ⋅ 
             </mo> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msup> 
               <mo>
                 − 
               </mo> 
               <mn>
                 15 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 60 
               </mn> 
               <mi>
                 d 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mn>
                 60 
               </mn> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mrow> 
               <mn>
                 15 
               </mn> 
              </mrow> 
             </mfrac> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <mo>
                 − 
               </mo> 
               <mn>
                 2 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  5 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 30 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  4 
                </mn> 
               </msup> 
               <mo>
                 − 
               </mo> 
               <mn>
                 150 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  3 
                </mn> 
               </msup> 
               <mo>
                 + 
               </mo> 
               <mn>
                 330 
               </mn> 
               <msup> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msup> 
               <mo>
                 − 
               </mo> 
               <mn>
                 315 
               </mn> 
               <mi>
                 d 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 93 
               </mn> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mrow> 
               <mn>
                 15 
               </mn> 
              </mrow> 
             </mfrac> 
             <msup> 
              <mrow> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mrow> 
                 <mi>
                   d 
                 </mi> 
                 <mo>
                   − 
                 </mo> 
                 <mn>
                   3 
                 </mn> 
                </mrow> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
              </mrow> 
              <mn>
                2 
              </mn> 
             </msup> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               3 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mo>
               &gt; 
             </mo> 
             <mn>
               3 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </mrow> 
       </mrow> 
      </mrow> 
     </math>(30)</p>
    <p>
     <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref> shows this density function.</p>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 7. Density unit cube.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId125.jpeg?20250829030829" />
    </fig>
   </sec>
   <sec id="s3_4">
    <title>3.4. Distance in the Unit Circle</title>
    <p>In the unit circle, we have the center at the origin (0, 0) and a radius limited to 1. We are not guaranteed a feasible point by random points on the (0, 1) interval. We must generate random points such that coordinates do not exceed a radius of 1. For any point, the x and y coordinates are limited to the maximum radius of 1:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          x 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mi>
          y 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         ≤ 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>(31)</p>
    <p>Because of this, we employ polar coordinates, such that the random angle is shown as 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        θ 
      </mi> 
     </math> on the (0, 2π) interval, and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        r 
      </mi> 
     </math>, the random radius, is on the (0, 1) interval. Our 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        X 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Y 
      </mi> 
     </math> coordinates are as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math>(32)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> (33)</p>
    <p>Take note of the radius component in the square root form. This must be done to guarantee a random distribution of a radius on the (0, 1) interval. If the square root were omitted, the random radius would be skewed toward the center of the circle. We would like a radius that is proportional to the circle’s area. Since the area ( 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        A 
      </mi> 
     </math>) of a circle is proportional to 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         π 
       </mi> 
       <msup> 
        <mi>
          r 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math>, we desire a radius that takes on the following form:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         r 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <mfrac> 
          <mi>
            A 
          </mi> 
          <mi>
            π 
          </mi> 
         </mfrac> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(34)</p>
    <p>This should justify taking the square root of the random number in the (0, 1) interval for the radius. These distances are shown in <xref ref-type="fig" rid="fig8(a)">
      Figure 8(a)
     </xref> and <xref ref-type="fig" rid="fig8(b)">
      Figure 8(b)
     </xref>.</p>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1040930-rId147.jpeg?20250829030831" /></p>(b)<xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 8. (a) Circle euclidean; (b) Circle rectilinear.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId146.jpeg?20250829030831" />
    </fig>
    <p>Using Equations (32) and (33) above, we have the Euclidean Distance between two points in the unit circle:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msqrt> 
              <mrow> 
               <msub> 
                <mi>
                  r 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
              </mrow> 
             </msqrt> 
             <mo>
               ⋅ 
             </mo> 
             <mtext>
               cos 
             </mtext> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  θ 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               − 
             </mo> 
             <msqrt> 
              <mrow> 
               <msub> 
                <mi>
                  r 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
              </mrow> 
             </msqrt> 
             <mo>
               ⋅ 
             </mo> 
             <mtext>
               cos 
             </mtext> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  θ 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msqrt> 
              <mrow> 
               <msub> 
                <mi>
                  r 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
              </mrow> 
             </msqrt> 
             <mo>
               ⋅ 
             </mo> 
             <mtext>
               sin 
             </mtext> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  θ 
                </mi> 
                <mn>
                  1 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
             <mo>
               − 
             </mo> 
             <msqrt> 
              <mrow> 
               <msub> 
                <mi>
                  r 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
              </mrow> 
             </msqrt> 
             <mo>
               ⋅ 
             </mo> 
             <mtext>
               sin 
             </mtext> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  θ 
                </mi> 
                <mn>
                  2 
                </mn> 
               </msub> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(35)</p>
    <p>Unfortunately, we are unable to obtain a density function via the distance function above. The required integration of Equation (35) above does not permit a symbolic solution. Fortunately, there is a clever proof available for the density function of the Euclidian distance between two points in the unit circle, which is as follows <xref ref-type="bibr" rid="scirp.145281-7">
      [7]
     </xref>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           4 
         </mn> 
         <mi>
           d 
         </mi> 
        </mrow> 
        <mi>
          π 
        </mi> 
       </mfrac> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msup> 
          <mrow> 
           <mi>
             cos 
           </mi> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mfrac> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mfrac> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </mfrac> 
         <msqrt> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             − 
           </mo> 
           <msup> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <mfrac> 
                <mi>
                  d 
                </mi> 
                <mn>
                  2 
                </mn> 
               </mfrac> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </msqrt> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(36)</p>
    <p>Using Equations (32) and (33) above, we have the Rectilinear Distance between two points in the unit circle.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <msub> 
            <mi>
              r 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </msqrt> 
         <mo>
           ⋅ 
         </mo> 
         <mtext>
           cos 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              θ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <msqrt> 
          <mrow> 
           <msub> 
            <mi>
              r 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </msqrt> 
         <mo>
           ⋅ 
         </mo> 
         <mtext>
           cos 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              θ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <msub> 
            <mi>
              r 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </msqrt> 
         <mo>
           ⋅ 
         </mo> 
         <mtext>
           sin 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              θ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <msqrt> 
          <mrow> 
           <msub> 
            <mi>
              r 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </msqrt> 
         <mo>
           ⋅ 
         </mo> 
         <mtext>
           sin 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              θ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(37)</p>
    <p>As is the case with the Euclidean distance between two points in the unit circle, the Rectilinear Distance is also difficult to obtain, and there are no exact solutions known to the authors. As such, a numerical approximation is employed. The Pearson Distribution is exploited to obtain an approximation to density function of a non-symmetric nature. This approximation is detailed in a subsequent section of this paper. The interval for possible rectilinear distances in the unit circle is (0, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         2 
       </mn> 
       <msqrt> 
        <mn>
          2 
        </mn> 
       </msqrt> 
      </mrow> 
     </math>). For this problem, we approximate the distance density via the following:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1.3940 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             0.2912 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mn>
             0.8089 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             0.0316 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mn>
           1.7168 
         </mn> 
        </mrow> 
       </msup> 
       <msup> 
        <mtext>
          e 
        </mtext> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           0.8992 
         </mn> 
         <mo>
           ⋅ 
         </mo> 
         <msup> 
          <mrow> 
           <mi>
             tanh 
           </mi> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             0.7006 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             0.9730 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </msup> 
      </mrow> 
     </math>(38)</p>
    <p>The density functions for the unit circle measurements are as shown in <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref> below:</p>
    <fig id="fig9" position="float">
     <label>Figure 9</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 9. Circle density.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId158.jpeg?20250829030835" />
    </fig>
   </sec>
   <sec id="s3_5">
    <title>3.5. Distance in the Unit Sphere</title>
    <p>In the unit sphere, we have the center at the origin (0, 0) and a radius limited to 1. We are not guaranteed a feasible point by random points on the (0, 1) interval. We must generate random points such that coordinates do not exceed a radius of 1. For any point, the x, y and z coordinates are limited to the maximum radius of 1:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          x 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mi>
          y 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mi>
          z 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mo>
         ≤ 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>(39)</p>
    <p>Because of this, we again employ polar coordinates, such that the random altazimuth angle is shown as 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        θ 
      </mi> 
     </math> on the (0, 2π) interval. The declination angle, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        φ 
      </mi> 
     </math>, is in the (0, π) interval, and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        r 
      </mi> 
     </math>, the random radius, is on the (0, 1) interval. Our 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        X 
      </mi> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Y 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Z 
      </mi> 
     </math> coordinates are as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Z 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math>(40)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          X 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          θ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mi>
         sin 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          Z 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msub> 
          <mi>
            r 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
       </msqrt> 
       <mi>
         cos 
       </mi> 
       <msub> 
        <mi>
          φ 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math>(41)</p>
    <p>As was the case for the unit circle, we must take the square root of the radius so that the distribution of the points is uniform throughout the unit sphere. <xref ref-type="fig" rid="fig10(a)">
      Figure 10(a)
     </xref> and <xref ref-type="fig" rid="fig10(b)">
      Figure 10(b)
     </xref> are shown in <xref ref-type="fig" rid="fig10(a)">
      Figure 10(a)
     </xref> and <xref ref-type="fig" rid="fig10(b)">
      Figure 10(b)
     </xref>.</p>
    <p>The Euclidean Distance between two points in the unit sphere is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Z 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Z 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(42)</p>
    <p>where the 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        X 
      </mi> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Y 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Z 
      </mi> 
     </math> coordinates are determined by Equations (40 and 41) above. A proof by Lellouche and Souris shows that the density function of a unit sphere has an interval of (0, 2) and is as follows <xref ref-type="bibr" rid="scirp.145281-8">
      [8]
     </xref> <xref ref-type="bibr" rid="scirp.145281-9">
      [9]
     </xref>:</p>
    <fig id="fig10" position="float">
     <label>Figure 10</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1040930-rId186.jpeg?20250829030837" /></p>(b)<xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 10. (a) Sphere euclidean; (b) Sphere rectilinear.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId185.jpeg?20250829030837" />
    </fig>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <msup> 
          <mi>
            d 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </mfrac> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mfrac> 
              <mi>
                d 
              </mi> 
              <mn>
                2 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            3 
          </mn> 
         </msup> 
         <mo>
           − 
         </mo> 
         <mn>
           3 
         </mn> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mfrac> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           + 
         </mo> 
         <mn>
           2 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(43)</p>
    <p>The Rectilinear Distance between two points in the unit sphere is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(44)</p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        X 
      </mi> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Y 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        Z 
      </mi> 
     </math> coordinates are determined by equations above. As was the case with the Rectilinear Distance in the unit circle, the author is not aware of an exact mathematical solution. As such, the Pearson distribution was again used to obtain the following density function approximation:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3.628 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             0.1748 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mn>
             0.5828 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             0.0476 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mn>
           2.8599 
         </mn> 
        </mrow> 
       </msup> 
       <msup> 
        <mtext>
          e 
        </mtext> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           0.5473 
         </mn> 
         <mo>
           ⋅ 
         </mo> 
         <msup> 
          <mrow> 
           <mi>
             tanh 
           </mi> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             0.5726 
           </mn> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             0.9543 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </msup> 
      </mrow> 
     </math>(45)</p>
    <p>This density function spans the (0, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         2 
       </mn> 
       <msqrt> 
        <mn>
          3 
        </mn> 
       </msqrt> 
      </mrow> 
     </math>) interval, and is shown in <xref ref-type="fig" rid="fig11">
      Figure 11
     </xref> below.</p>
   </sec>
   <sec id="s3_6">
    <title>3.6. Distance in the Unit Triangle</title>
    <p>The Unit triangle has vertices at (0, 0), 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mn>
            1 
          </mn> 
          <mn>
            2 
          </mn> 
         </mfrac> 
         <mo>
           , 
         </mo> 
         <mfrac> 
          <mrow> 
           <msqrt> 
            <mn>
              3 
            </mn> 
           </msqrt> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and (1, 0). The X coordinate must be on the (0, 1) interval, and the Y coordinate must be on the 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           0 
         </mn> 
         <mo>
           , 
         </mo> 
         <mfrac> 
          <mrow> 
           <msqrt> 
            <mn>
              3 
            </mn> 
           </msqrt> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> interval. Additionally, to guarantee the random point is in the unit triangle, the following two conditions must be met:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         y 
       </mi> 
       <mo>
         ≤ 
       </mo> 
       <msqrt> 
        <mn>
          3 
        </mn> 
       </msqrt> 
       <mi>
         x 
       </mi> 
      </mrow> 
     </math> (46)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         y 
       </mi> 
       <mo>
         ≤ 
       </mo> 
       <msqrt> 
        <mn>
          3 
        </mn> 
       </msqrt> 
       <mo>
         − 
       </mo> 
       <msqrt> 
        <mn>
          3 
        </mn> 
       </msqrt> 
       <mi>
         x 
       </mi> 
      </mrow> 
     </math> (47)</p>
    <p>
     <xref ref-type="fig" rid="fig12(a)">
      Figure 12(a)
     </xref> and<xref ref-type="fig" rid="fig12(b)">
      Figure 12(b)
     </xref> show an example of Euclidean and Rectilinear distances in the unit triangle.</p>
    <fig id="fig11" position="float">
     <label>Figure 11</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 11. Sphere density.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId209.jpeg?20250829030841" />
    </fig>
    <fig id="fig12" position="float">
     <label>Figure 12</label>
     <caption>
      <title>(a)<p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/1040930-rId211.jpeg?20250829030840" /></p>(b)<xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 12. (a) Triangle euclidean; (b) Triangle rectilinear.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId210.jpeg?20250829030840" />
    </fig>
    <p>After feasible points are generated in the unit triangle, the Euclidean distance is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                X 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                Y 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </msqrt> 
      </mrow> 
     </math>(48)</p>
    <p>The density function is:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         132.8 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             0.3047 
           </mn> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mn>
             0.2844 
           </mn> 
           <mi>
             d 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             0.0012 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mn>
           1.6407 
         </mn> 
        </mrow> 
       </msup> 
       <msup> 
        <mtext>
          e 
        </mtext> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1.144 
         </mn> 
         <msup> 
          <mrow> 
           <mi>
             tanh 
           </mi> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             2.124 
           </mn> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             0.9912 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </msup> 
      </mrow> 
     </math>(49)</p>
    <p>For the points generated above, the Rectilinear distance is as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         d 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          | 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          | 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(50)</p>
    <p>The density function is:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         f 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          d 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         140.8 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             0.2295 
           </mn> 
           <msup> 
            <mi>
              d 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             + 
           </mo> 
           <mn>
             0.3033 
           </mn> 
           <mi>
             d 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             0.0048 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mn>
           2.1791 
         </mn> 
        </mrow> 
       </msup> 
       <msup> 
        <mtext>
          e 
        </mtext> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1.851 
         </mn> 
         <msup> 
          <mrow> 
           <mi>
             tanh 
           </mi> 
          </mrow> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msup> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1.478 
           </mn> 
           <mi>
             d 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             0.9771 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </msup> 
      </mrow> 
     </math>(51)</p>
    <p>
     <xref ref-type="fig" rid="fig13">
      Figure 13
     </xref> shows the density function.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Pearson Distribution for Estimation of Density Functions</title>
   <p>
    <xref ref-type="bibr" rid="scirp.145281-"></xref>For this research effort, some density functions cannot be determined symbolically. As such, an estimate is used to find the density function. The Pearson Distribution is employed, as it is able to find density functions, specifically of a non-symmetric nature. Specifically, the Pearson Distribution, Type 4 is employed here, which considers the skewed behavior of the resultant distance data. The distance measures exploiting the Pearson Distribution are the rectilinear distance for the unit circle, the rectilinear distance for the unit sphere, and both the Euclidean and rectilinear distance for the unit triangle.</p>
   <fig id="fig13" position="float">
    <label>Figure 13</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 13. Triangle density.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId220.jpeg?20250829030845" />
   </fig>
   <p>For each of these four scenarios where a symbolic solution is not possible, 1,000,000 measures of distance ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       d 
     </mi> 
    </math>) were obtained via simulation and recorded. These simulated distances were essentially employed as data sets to be “fitted”. The intent is to find a density function that best “fits” the simulated data <xref ref-type="bibr" rid="scirp.145281-10">
     [10]
    </xref> <xref ref-type="bibr" rid="scirp.145281-11">
     [11]
    </xref>.</p>
   <p>The Pearson Distribution function starts as a differential equation:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mfrac> 
       <mrow> 
        <mtext>
          d 
        </mtext> 
        <mi>
          f 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mi>
           d 
         </mi> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
       <mrow> 
        <mtext>
          d 
        </mtext> 
        <mi>
          d 
        </mi> 
       </mrow> 
      </mfrac> 
      <mo>
        = 
      </mo> 
      <mfrac> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mi>
            d 
          </mi> 
          <mo>
            + 
          </mo> 
          <mi>
            a 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          ⋅ 
        </mo> 
        <mi>
          f 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mi>
           d 
         </mi> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
       <mrow> 
        <msub> 
         <mi>
           c 
         </mi> 
         <mn>
           2 
         </mn> 
        </msub> 
        <msup> 
         <mi>
           d 
         </mi> 
         <mn>
           2 
         </mn> 
        </msup> 
        <mo>
          + 
        </mo> 
        <msub> 
         <mi>
           c 
         </mi> 
         <mn>
           1 
         </mn> 
        </msub> 
        <mi>
          d 
        </mi> 
        <mo>
          + 
        </mo> 
        <msub> 
         <mi>
           c 
         </mi> 
         <mn>
           0 
         </mn> 
        </msub> 
       </mrow> 
      </mfrac> 
     </mrow> 
    </math>(52)</p>
   <p>The solution to this differential equation is as follows:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         d 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mrow> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             c 
           </mi> 
           <mn>
             2 
           </mn> 
          </msub> 
          <msup> 
           <mi>
             d 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             c 
           </mi> 
           <mn>
             1 
           </mn> 
          </msub> 
          <mi>
            d 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             c 
           </mi> 
           <mn>
             0 
           </mn> 
          </msub> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <mo>
            − 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mrow> 
          <mn>
            2 
          </mn> 
          <msub> 
           <mi>
             c 
           </mi> 
           <mn>
             2 
           </mn> 
          </msub> 
         </mrow> 
        </mfrac> 
       </mrow> 
      </msup> 
      <mo>
        ⋅ 
      </mo> 
      <msub> 
       <mi>
         c 
       </mi> 
       <mn>
         3 
       </mn> 
      </msub> 
      <mo>
        ⋅ 
      </mo> 
      <mtext>
        exp 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msup> 
           <mrow> 
            <mi>
              tan 
            </mi> 
           </mrow> 
           <mrow> 
            <mo>
              − 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
          </msup> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mfrac> 
             <mrow> 
              <mn>
                2 
              </mn> 
              <msub> 
               <mi>
                 c 
               </mi> 
               <mn>
                 2 
               </mn> 
              </msub> 
              <mi>
                d 
              </mi> 
              <mo>
                + 
              </mo> 
              <msub> 
               <mi>
                 c 
               </mi> 
               <mn>
                 1 
               </mn> 
              </msub> 
             </mrow> 
             <mrow> 
              <msqrt> 
               <mrow> 
                <mn>
                  4 
                </mn> 
                <msub> 
                 <mi>
                   c 
                 </mi> 
                 <mn>
                   0 
                 </mn> 
                </msub> 
                <msub> 
                 <mi>
                   c 
                 </mi> 
                 <mn>
                   2 
                 </mn> 
                </msub> 
                <mo>
                  − 
                </mo> 
                <msubsup> 
                 <mi>
                   c 
                 </mi> 
                 <mn>
                   1 
                 </mn> 
                 <mn>
                   2 
                 </mn> 
                </msubsup> 
               </mrow> 
              </msqrt> 
             </mrow> 
            </mfrac> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            ⋅ 
          </mo> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mn>
              2 
            </mn> 
            <msub> 
             <mi>
               c 
             </mi> 
             <mn>
               2 
             </mn> 
            </msub> 
            <mi>
              a 
            </mi> 
            <mo>
              − 
            </mo> 
            <msub> 
             <mi>
               c 
             </mi> 
             <mn>
               1 
             </mn> 
            </msub> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mrow> 
          <msub> 
           <mi>
             c 
           </mi> 
           <mn>
             2 
           </mn> 
          </msub> 
          <msqrt> 
           <mrow> 
            <mn>
              4 
            </mn> 
            <msub> 
             <mi>
               c 
             </mi> 
             <mn>
               0 
             </mn> 
            </msub> 
            <msub> 
             <mi>
               c 
             </mi> 
             <mn>
               2 
             </mn> 
            </msub> 
            <mo>
              − 
            </mo> 
            <msubsup> 
             <mi>
               c 
             </mi> 
             <mn>
               1 
             </mn> 
             <mn>
               2 
             </mn> 
            </msubsup> 
           </mrow> 
          </msqrt> 
         </mrow> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>(53)</p>
   <p>After numerically solving for the constants, and simplifying, we have the following general solution:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         d 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         b 
       </mi> 
       <mn>
         7 
       </mn> 
      </msub> 
      <msup> 
       <mrow> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             b 
           </mi> 
           <mn>
             2 
           </mn> 
          </msub> 
          <msup> 
           <mi>
             d 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             b 
           </mi> 
           <mn>
             1 
           </mn> 
          </msub> 
          <mi>
            d 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             b 
           </mi> 
           <mn>
             0 
           </mn> 
          </msub> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
       <mrow> 
        <msub> 
         <mi>
           b 
         </mi> 
         <mn>
           3 
         </mn> 
        </msub> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <msub> 
         <mi>
           b 
         </mi> 
         <mn>
           4 
         </mn> 
        </msub> 
        <msup> 
         <mrow> 
          <mi>
            tanh 
          </mi> 
         </mrow> 
         <mrow> 
          <mo>
            − 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
        </msup> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             b 
           </mi> 
           <mn>
             5 
           </mn> 
          </msub> 
          <mi>
            d 
          </mi> 
          <mo>
            − 
          </mo> 
          <msub> 
           <mi>
             b 
           </mi> 
           <mn>
             6 
           </mn> 
          </msub> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math>(54)</p>
   <p>Here, the constant values ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         b 
       </mi> 
       <mi>
         i 
       </mi> 
      </msub> 
     </mrow> 
    </math>) vary according to the density function pursued. The values of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         b 
       </mi> 
       <mi>
         i 
       </mi> 
      </msub> 
     </mrow> 
    </math> are shown in the Section 3, where the specific distance measure of interest is presented.</p>
   <p>For purposes of comparison, The Pearson Distribution function estimated for the Euclidean Distance in a unit sphere is compared to the actual density function for Euclidean Distance in a unit sphere. <xref ref-type="fig" rid="fig14">
     Figure 14
    </xref> shows the result <xref ref-type="bibr" rid="scirp.145281-12">
     [12]
    </xref> <xref ref-type="bibr" rid="scirp.145281-13">
     [13]
    </xref>.</p>
   <fig id="fig14" position="float">
    <label>Figure 14</label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Figure 14. Sphere comparison.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1040930-rId233.jpeg?20250829030845" />
   </fig>
   <p>From close inspection, one should notice that the difference between the actual density function and the estimated density function is small. The authors consider this small difference a strong argument as to the viability of estimating density functions that cannot be determined to exactness.</p>
  </sec><sec id="s5">
   <title>5. Statistics Associated with Density Functions</title>
   <p>In addition to the density functions obtained, it is desired to capture descriptive statistics of these random variables. Of specific interest are the mean, standard deviation and median values. For the mean or expected value ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       μ 
     </mi> 
    </math>), we exploit the density function ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         d 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>) as follows:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        μ 
      </mi> 
      <mo>
        = 
      </mo> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <msubsup> 
         <mo>
           ∫ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mi>
           b 
         </mi> 
        </msubsup> 
        <mrow> 
         <mi>
           d 
         </mi> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           f 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            d 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           d 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
     </mrow> 
    </math>(55)</p>
   <p>where 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       b 
     </mi> 
    </math> is the highest possible value of the random variable of interest. For the standard deviation of the random variable of interest ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       σ 
     </mi> 
    </math>), we exploit the following via the density function of interest:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        σ 
      </mi> 
      <mo>
        = 
      </mo> 
      <msqrt> 
       <mrow> 
        <mstyle displaystyle="true"> 
         <mrow> 
          <msubsup> 
           <mo>
             ∫ 
           </mo> 
           <mn>
             0 
           </mn> 
           <mi>
             b 
           </mi> 
          </msubsup> 
          <mrow> 
           <msup> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <mi>
                 d 
               </mi> 
               <mo>
                 − 
               </mo> 
               <mi>
                 μ 
               </mi> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mi>
             f 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              d 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mtext>
             d 
           </mtext> 
           <mi>
             d 
           </mi> 
          </mrow> 
         </mrow> 
        </mstyle> 
       </mrow> 
      </msqrt> 
     </mrow> 
    </math>(56)</p>
   <p>For the median, we find the value of the density function at the 50th percentile. With the density function for the random variable of interest, we take the following and solve for the unknown ( 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       x 
     </mi> 
    </math>):</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145281-"></xref> 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mfrac> 
       <mn>
         1 
       </mn> 
       <mn>
         2 
       </mn> 
      </mfrac> 
      <mo>
        = 
      </mo> 
      <mstyle displaystyle="true"> 
       <mrow> 
        <msubsup> 
         <mo>
           ∫ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mi>
           x 
         </mi> 
        </msubsup> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            d 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           d 
         </mi> 
        </mrow> 
       </mrow> 
      </mstyle> 
     </mrow> 
    </math>(57)</p>
   <p>
    <xref ref-type="table" rid="tableTables 1-3">
     Tables 1-3
    </xref> below summarize the descriptive statistics associated with each density function pursued <xref ref-type="bibr" rid="scirp.145281-14">
     [14]
    </xref>.</p>
   <table-wrap id="table1">
    <label>
     <xref ref-type="table" rid="table1">
      Table 1
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Table 1. Expected values for density functions.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="31.03%"><p style="text-align:center">Distance Measurement</p></td> 
      <td class="custom-bottom-td acenter" width="68.97%"><p style="text-align:center">Expected Value: Symbolic Value (Fixed Point Value)</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="31.03%"><p style="text-align:center">Line</p></td> 
      <td class="custom-top-td acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mn>
             3 
           </mn> 
          </mfrac> 
         </mrow> 
        </math>, (0.333333)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Square (Euclidean)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             2 
           </mn> 
           <mrow> 
            <mn>
              15 
            </mn> 
           </mrow> 
          </mfrac> 
          <mo>
            + 
          </mo> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mrow> 
            <mn>
              15 
            </mn> 
           </mrow> 
          </mfrac> 
          <mo>
            − 
          </mo> 
          <mi>
            ln 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mn>
              1 
            </mn> 
            <mo>
              + 
            </mo> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            + 
          </mo> 
          <mfrac> 
           <mrow> 
            <mn>
              4 
            </mn> 
            <msup> 
             <mrow> 
              <mi>
                coth 
              </mi> 
             </mrow> 
             <mrow> 
              <mo>
                − 
              </mo> 
              <mn>
                1 
              </mn> 
             </mrow> 
            </msup> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mn>
             3 
           </mn> 
          </mfrac> 
         </mrow> 
        </math>, (0.5214054335)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Square (Rectilinear)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             2 
           </mn> 
           <mn>
             3 
           </mn> 
          </mfrac> 
         </mrow> 
        </math> (0.66666667)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Cube (Euclidean)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             4 
           </mn> 
           <mrow> 
            <mn>
              105 
            </mn> 
           </mrow> 
          </mfrac> 
          <mo>
            + 
          </mo> 
          <mfrac> 
           <mrow> 
            <mn>
              17 
            </mn> 
           </mrow> 
           <mrow> 
            <mn>
              105 
            </mn> 
           </mrow> 
          </mfrac> 
          <msqrt> 
           <mn>
             2 
           </mn> 
          </msqrt> 
          <mo>
            − 
          </mo> 
          <mfrac> 
           <mn>
             2 
           </mn> 
           <mrow> 
            <mn>
              35 
            </mn> 
           </mrow> 
          </mfrac> 
          <msqrt> 
           <mn>
             3 
           </mn> 
          </msqrt> 
          <mo>
            + 
          </mo> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mn>
             5 
           </mn> 
          </mfrac> 
          <mi>
            ln 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mn>
              1 
            </mn> 
            <mo>
              + 
            </mo> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            + 
          </mo> 
          <mfrac> 
           <mn>
             2 
           </mn> 
           <mn>
             5 
           </mn> 
          </mfrac> 
          <mi>
            ln 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mn>
              2 
            </mn> 
            <mo>
              + 
            </mo> 
            <msqrt> 
             <mn>
               3 
             </mn> 
            </msqrt> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            − 
          </mo> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mrow> 
            <mn>
              15 
            </mn> 
           </mrow> 
          </mfrac> 
          <mi>
            π 
          </mi> 
         </mrow> 
        </math>, (0.6617071838)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Cube (Rectilinear)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center">1 (1.000000)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Circle (Euclidean)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <mn>
              128 
            </mn> 
           </mrow> 
           <mrow> 
            <mn>
              45 
            </mn> 
            <mi>
              π 
            </mi> 
           </mrow> 
          </mfrac> 
         </mrow> 
        </math> (0.9054147874)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Circle (Rectilinear)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center">Not Available (1.15258320967201)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Sphere (Euclidean)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <mn>
              36 
            </mn> 
           </mrow> 
           <mrow> 
            <mn>
              35 
            </mn> 
           </mrow> 
          </mfrac> 
         </mrow> 
        </math> (1.0285714286)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Sphere (Rectilinear)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center">Not Available (1.5428441)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Triangle (Euclidean)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center">Not Available (0.3647171)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="31.03%"><p style="text-align:center">Unit Triangle (Rectilinear)</p></td> 
      <td class="acenter" width="68.97%"><p style="text-align:center">Not Available (0.4639936)</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <table-wrap id="table2">
    <label>
     <xref ref-type="table" rid="table2">
      Table 2
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Table 2. Standard deviations for density functions.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="23.72%"><p style="text-align:center">Distance Measurement</p></td> 
      <td class="custom-bottom-td acenter" width="76.28%"><p style="text-align:center">Standard Deviation: Symbolic Value (Fixed Point Value)</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="23.72%"><p style="text-align:center">Line</p></td> 
      <td class="custom-top-td acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mn>
             6 
           </mn> 
          </mfrac> 
         </mrow> 
        </math> (0.235702264)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Square (Euclidean)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mrow> 
            <mn>
              15 
            </mn> 
           </mrow> 
          </mfrac> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mn>
              69 
            </mn> 
            <mo>
              − 
            </mo> 
            <mn>
              225 
            </mn> 
            <mi>
              ln 
            </mi> 
            <msup> 
             <mrow> 
              <mrow> 
               <mo>
                 ( 
               </mo> 
               <mrow> 
                <mn>
                  1 
                </mn> 
                <mo>
                  + 
                </mo> 
                <msqrt> 
                 <mn>
                   2 
                 </mn> 
                </msqrt> 
               </mrow> 
               <mo>
                 ) 
               </mo> 
              </mrow> 
             </mrow> 
             <mn>
               2 
             </mn> 
            </msup> 
            <mo>
              + 
            </mo> 
            <mn>
              30 
            </mn> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <mn>
                2 
              </mn> 
              <mo>
                + 
              </mo> 
              <msqrt> 
               <mn>
                 2 
               </mn> 
              </msqrt> 
              <mo>
                + 
              </mo> 
              <mn>
                20 
              </mn> 
              <msup> 
               <mrow> 
                <mi>
                  coth 
                </mi> 
               </mrow> 
               <mrow> 
                <mo>
                  − 
                </mo> 
                <mn>
                  1 
                </mn> 
               </mrow> 
              </msup> 
              <mrow> 
               <mo>
                 ( 
               </mo> 
               <mrow> 
                <msqrt> 
                 <mn>
                   2 
                 </mn> 
                </msqrt> 
               </mrow> 
               <mo>
                 ) 
               </mo> 
              </mrow> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
            <mi>
              ln 
            </mi> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <mn>
                1 
              </mn> 
              <mo>
                + 
              </mo> 
              <msqrt> 
               <mn>
                 2 
               </mn> 
              </msqrt> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
           </mrow> 
          </mrow> 
         </mrow> 
        </math></p><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mo>
            − 
          </mo> 
          <msup> 
           <mrow> 
            <mrow> 
             <mrow> 
              <mn>
                400 
              </mn> 
              <msup> 
               <mrow> 
                <mi>
                  coth 
                </mi> 
               </mrow> 
               <mrow> 
                <mo>
                  − 
                </mo> 
                <mn>
                  1 
                </mn> 
               </mrow> 
              </msup> 
              <msup> 
               <mrow> 
                <mrow> 
                 <mo>
                   ( 
                 </mo> 
                 <mrow> 
                  <msqrt> 
                   <mn>
                     2 
                   </mn> 
                  </msqrt> 
                 </mrow> 
                 <mo>
                   ) 
                 </mo> 
                </mrow> 
               </mrow> 
               <mn>
                 2 
               </mn> 
              </msup> 
              <mn>
                40 
              </mn> 
              <mrow> 
               <mo>
                 ( 
               </mo> 
               <mrow> 
                <mo>
                  − 
                </mo> 
                <mn>
                  2 
                </mn> 
                <mo>
                  − 
                </mo> 
                <msqrt> 
                 <mn>
                   2 
                 </mn> 
                </msqrt> 
               </mrow> 
               <mo>
                 ) 
               </mo> 
              </mrow> 
              <msup> 
               <mrow> 
                <mi>
                  coth 
                </mi> 
               </mrow> 
               <mrow> 
                <mo>
                  − 
                </mo> 
                <mn>
                  1 
                </mn> 
               </mrow> 
              </msup> 
              <mrow> 
               <mo>
                 ( 
               </mo> 
               <mrow> 
                <msqrt> 
                 <mn>
                   2 
                 </mn> 
                </msqrt> 
               </mrow> 
               <mo>
                 ) 
               </mo> 
              </mrow> 
              <mo>
                − 
              </mo> 
              <mn>
                4 
              </mn> 
              <msqrt> 
               <mn>
                 2 
               </mn> 
              </msqrt> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
           </mrow> 
           <mrow> 
            <mrow> 
             <mn>
               1 
             </mn> 
             <mo>
               / 
             </mo> 
             <mn>
               2 
             </mn> 
            </mrow> 
           </mrow> 
          </msup> 
         </mrow> 
        </math>, (0.6617071838)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Square (Rectilinear)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mn>
             1 
           </mn> 
           <mn>
             3 
           </mn> 
          </mfrac> 
         </mrow> 
        </math> (0.33333333)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Cube (Euclidean)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center">Available from Authors<sup>*</sup> (0.2492861908)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Cube (Rectilinear)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mn>
               6 
             </mn> 
            </msqrt> 
           </mrow> 
           <mn>
             6 
           </mn> 
          </mfrac> 
         </mrow> 
        </math> (0.4082482906)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Circle (Euclidean)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mrow> 
              <mn>
                2025 
              </mn> 
              <msup> 
               <mi>
                 π 
               </mi> 
               <mn>
                 2 
               </mn> 
              </msup> 
              <mo>
                − 
              </mo> 
              <mn>
                16384 
              </mn> 
             </mrow> 
            </msqrt> 
           </mrow> 
           <mrow> 
            <mn>
              45 
            </mn> 
            <mi>
              π 
            </mi> 
           </mrow> 
          </mfrac> 
         </mrow> 
        </math> (0.4245280475)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Circle (Rectilinear)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center">Not Available (0.554961333335191)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Sphere (Euclidean)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mrow> 
              <mn>
                174 
              </mn> 
             </mrow> 
            </msqrt> 
           </mrow> 
           <mrow> 
            <mn>
              35 
            </mn> 
           </mrow> 
          </mfrac> 
         </mrow> 
        </math> (0.3768830274)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Sphere (Rectilinear)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center">Not Available (0.5899576)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Triangle (Euclidean)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center">Not Available (0.1834006)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="23.72%"><p style="text-align:center">Unit Triangle (Rectilinear)</p></td> 
      <td class="acenter" width="76.28%"><p style="text-align:center">Not Available (0.2385581)</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>*This symbolic result is very lengthy, and in the interest of convenience, is not shown here.</p>
   <table-wrap id="table3">
    <label>
     <xref ref-type="table" rid="table3">
      Table 3
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.145281-"></xref>Table 3. Median values for density functions.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="51.92%"><p style="text-align:center">Distance Measurement</p></td> 
      <td class="custom-bottom-td acenter" width="85.95%"><p style="text-align:center">Median: Symbolic Value (Fixed Point Value)</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="51.92%"><p style="text-align:center">Line</p></td> 
      <td class="custom-top-td acenter" width="85.95%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            1 
          </mn> 
          <mo>
            − 
          </mo> 
          <mfrac> 
           <mrow> 
            <msqrt> 
             <mn>
               2 
             </mn> 
            </msqrt> 
           </mrow> 
           <mn>
             2 
           </mn> 
          </mfrac> 
         </mrow> 
        </math> (0.2928932190)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Square (Euclidean)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.512003269083295)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Square (Rectilinear)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.642156234507211)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Cube (Euclidean)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.662283184809551)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Cube (Rectilinear)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.976278306309760)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Circle (Euclidean)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.8912907750)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Circle (Rectilinear)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (1.12469353312852)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Sphere (Euclidean)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (1.033247409)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Sphere (Rectilinear)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (1.5339)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Triangle (Euclidean)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.3513)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="51.92%"><p style="text-align:center">Unit Triangle (Rectilinear)</p></td> 
      <td class="acenter" width="85.95%"><p style="text-align:center">Not Available (0.44305)</p></td> 
     </tr> 
    </table>
   </table-wrap>
  </sec><sec id="s6">
   <title>6. Concluding Comments</title>
   <p>For common distance measures in unit space, density functions and descriptive statistics were obtained to provide a better description of these entities. In all instances, exact, symbolic solutions were desired, but not always possible. For all but four density functions, exact, symbolic solutions were obtained. For the four density functions for which exact, symbolic solutions were not available, reasonably accurate numerical approximations via the Pearson distribution were obtained. These approximations are believed to be reasonable estimates of the actual density functions, as a comparison was made between the actual density function for the distance between two points on a unit sphere and an approximation of that same density. The comparison shows the approximation is, in fact, a reasonable fit.</p>
   <p>For the descriptive statistics measures of mean, median and standard deviation, exact, symbolic solutions were more difficult to obtain. Symbolic solutions were obtained for the simpler distance measures. As such, numerical values were usually presented.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.145281-"></xref>There are opportunities for subsequent research in this area. With the emphasis on wireless networks, microprocessors and the like, this has become an important problem <xref ref-type="bibr" rid="scirp.145281-15">
     [15]
    </xref>. For example, consider the electronics industry. Integrated circuits often require precious medals, such as silver, to permit an electrical signal to flow. Precious medals, such as silver, are expensive, and they need to be used parsimoniously. We can employ the methodology presented here, so that we have a better idea of how much silver is needed so that the proper amount of silver is procured, preventing needless waste.</p>
   <p>Exact, symbolic solutions were obtained via Maple version 2023.2. It is always possible for the mathematical software to gain functionality over time, and enable the user to see more exact, symbolic solutions. Additionally, there are many other distance measures and subsequent density functions and descriptive statistics to investigate.</p>
  </sec><sec id="s7">
   <title>Acknowledgements</title>
   <p>The authors would like to thank the participants at MaplePrimes – they have been very responsive to our many Maple-related questions.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.145281-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     McMullen, P.R. (2024) Quantitative Methods for Business, v6. Independently Published.
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Winston, W.L. and Albright, S.C. (2013) Business Analytics: Data Analysis and Decision Making. Cengage Learning.
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Philip, J. (2007) The Probability Distribution of the Distance between Two Random Points in a Box. TRITA MAT. &gt;https://people.kth.se/~johanph/habc.pdf 
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Philip, J. (2007) Calculation of Expected Distance on a Unit Cube. TRITA MAT. &gt;https://people.kth.se/~johanph/cube.pdf 
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bailey, D.H., Borwein, J.M. and Crandall, R.E. (2007) Box integrals. Journal of Computational and Applied Mathematics, 206, 196-208. &gt;https://doi.org/10.1016/j.cam.2006.06.010
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Abell, M.L. and Braselton, J.P. (2023) Introductory Differential Equations. 6th Edition, McGraw-Hill. 
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Moltchanov, D. (2012) Distance Distributions in Random Networks. Ad Hoc Networks, 10, 1146-1166. &gt;https://doi.org/10.1016/j.adhoc.2012.02.005
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Lellouche, S. and Souris, M. (2019) Distribution of Distances between Elements in a Compact Set. Stats, 3, 1-15. &gt;https://doi.org/10.3390/stats3010001
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     García-Pelayo, R. (2005) Distribution of Distance in the Spheroid. Journal of Physics A: Mathematical and General, 38, 3475-3482. &gt;https://doi.org/10.1088/0305-4470/38/16/001
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Dunbar, S.R. (1997) The Average Distance between Points in Geometric Figures. The College Mathematics Journal, 28, 187-197. &gt;https://doi.org/10.1080/07468342.1997.11973860
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     (2025) Pearson Distribution. Mathworks.&gt;https://www.mathworks.com/help/stats/pearson-distribution.html 
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Elderton, W.P. and Johnson, N.L. (1969) Systems of Frequency Curves. Cambridge University Press. &gt;https://doi.org/10.1017/cbo9780511569654
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ord, J.K. (1972) Families of Frequency Distributions. Griffin.
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Miller, L.E. (2001) Distribution of Link Distances in a Wireless Network. Journal of Research of the National Institute of Standards and Technology, 106, 401-412. &gt;https://doi.org/10.6028/jres.106.017
    </mixed-citation>
   </ref>
   <ref id="scirp.145281-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Srinivasa, S. and Haenggi, M. (2010) Distance Distributions in Finite Uniformly Random Networks: Theory and Applications. IEEE Transactions on Vehicular Technology, 59, 940-949. &gt;https://doi.org/10.1109/tvt.2009.2035044
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>