﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6884.37264"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <identity>
      <id>1b4691b1-4e86-4ef7-ad67-0958d79e237b</id>
      <revision>25</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>1</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="2" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="39" bottom="39" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.6884.37264" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.6884.37264" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.6831.35137" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.6884.37264" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.6884.37264" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.11.6884.37264" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region id="0" left="63" top="9" width="467" height="28" color="#000000" bgColor="#ffffff" fontSize="12">
      <text lang="rus">
        <p bold="true">Finding Minimum Distance of a Point from Curve</p>
      </text>
    </region>
    <region id="1" left="27" top="72" width="522" height="140" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
      <math roundingMode="0">
        <description active="true" position="Top" lang="rus">
          <p>Draghilev method</p>
        </description>
        <input>
          <e type="operand">2</e>
          <e type="function" args="1">f</e>
          <e type="operand">X0</e>
          <e type="operand">tmin</e>
          <e type="operand">tmax</e>
          <e type="operand">N</e>
          <e type="function" args="5">D</e>
          <e type="operand">J</e>
          <e type="operand">ξ</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">ξ</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">f</e>
          <e type="operand">ξ</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">diff</e>
          <e type="operand">ξ</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">ξ</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">f</e>
          <e type="operand">ξ</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">diff</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operator" args="2">:</e>
          <e type="operand">t</e>
          <e type="operand">ξ</e>
          <e type="function" args="2">D1</e>
          <e type="operand">J</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="1">-</e>
          <e type="operand">J</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="1">transpose</e>
          <e type="operand">J</e>
          <e type="function" args="1">norme</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
          <e type="operand">X0</e>
          <e type="operand">tmin</e>
          <e type="operand">tmax</e>
          <e type="operand">N</e>
          <e type="operand">t</e>
          <e type="operand">ξ</e>
          <e type="function" args="2">D1</e>
          <e type="function" args="5">rkfixed</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="2" left="18" top="261" width="575" height="115" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">curve</e>
          <e type="operand">B</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="operand">B</e>
          <e type="operand">3</e>
          <e type="function" args="2">col</e>
          <e type="function" args="2">augment</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">curve</e>
          <e type="function" args="1">rows</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">dist</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">curve</e>
          <e type="operand">1</e>
          <e type="function" args="2">col</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">curve</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">sqrt</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">dictMin</e>
          <e type="operand">curve</e>
          <e type="operand">dist</e>
          <e type="function" args="2">augment</e>
          <e type="function" args="1">eval</e>
          <e type="operand">3</e>
          <e type="function" args="2">csort</e>
          <e type="operand">1</e>
          <e type="function" args="2">row</e>
          <e type="function" args="1">transpose</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="3" left="18" top="414" width="438" height="54" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">f</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">y</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">exp</e>
          <e type="operand">2</e>
          <e type="operand">y</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="1">-</e>
          <e type="operand">x</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">+</e>
          <e type="operand">81</e>
          <e type="operand">6</e>
          <e type="operand">π</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0.005</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="4" left="9" top="477" width="392" height="93" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
      <math>
        <input>
          <e type="operand">X0</e>
          <e type="operand">1.7857</e>
          <e type="operand">0</e>
          <e type="function" args="2">stack</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Δt</e>
          <e type="operand">0.25</e>
          <e type="operator" args="2">:</e>
          <e type="operand">tmax</e>
          <e type="operand">33</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operand">B</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">f</e>
          <e type="operand">X0</e>
          <e type="operand">0</e>
          <e type="operand">tmax</e>
          <e type="operand">tmax</e>
          <e type="operand">Δt</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="5">D</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="operand">20</e>
          <e type="function" args="1">random</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operator" args="2">-</e>
          <e type="operand">1</e>
          <e type="operand">20</e>
          <e type="function" args="1">random</e>
          <e type="operator" args="2">*</e>
          <e type="operand">9</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="2">stack</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
        </input>
      </math>
    </region>
    <region id="5" left="414" top="477" width="331" height="218" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
      <plot type="2d" render="lines" scale_x="1.49332528661442" scale_y="1.49332528661442" scale_z="1.49332528661442" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-85" transpose_y="-29" transpose_z="0">
        <input>
          <e type="operand">B</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="operand">B</e>
          <e type="operand">3</e>
          <e type="function" args="2">col</e>
          <e type="function" args="2">augment</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">14</e>
          <e type="operand" style="string">black</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">0.2</e>
          <e type="operator" args="2">+</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">0.4</e>
          <e type="operator" args="2">+</e>
          <e type="operand" style="string">A</e>
          <e type="operand">12</e>
          <e type="operand" style="string">black</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">14</e>
          <e type="operand" style="string">red</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">1</e>
          <e type="operand">9</e>
          <e type="operand" style="string">Distance </e>
          <e type="operand" style="string">=</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="function" args="2">round</e>
          <e type="function" args="1">var2str</e>
          <e type="function" args="3">concat</e>
          <e type="operand">10</e>
          <e type="operand" style="string">red</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">sys</e>
        </input>
      </plot>
    </region>
    <region id="6" left="0" top="720" width="418" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math roundingMode="0">
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">f</e>
          <e type="operand">x</e>
          <e type="operand">2</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">5</e>
          <e type="operand">y</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">y</e>
          <e type="bracket">(</e>
          <e type="operand">10</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">3</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">0</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="7" left="0" top="765" width="360" height="93" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">X0</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="function" args="2">stack</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Δt</e>
          <e type="operand">0.02</e>
          <e type="operator" args="2">:</e>
          <e type="operand">tmax</e>
          <e type="operand">15</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operand">B</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">f</e>
          <e type="operand">X0</e>
          <e type="operand">0</e>
          <e type="operand">tmax</e>
          <e type="operand">tmax</e>
          <e type="operand">Δt</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="5">D</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">10</e>
          <e type="function" args="1">random</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operand">10</e>
          <e type="function" args="1">random</e>
          <e type="operand">4</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="2">stack</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
        </input>
      </math>
    </region>
    <region id="8" left="414" top="765" width="322" height="249" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
      <plot type="2d" render="lines" scale_x="5.07908036045808" scale_y="4.61734578223461" scale_z="3.70264958277394" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-85" transpose_y="-52" transpose_z="0">
        <input>
          <e type="operand">B</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="operand">B</e>
          <e type="operand">3</e>
          <e type="function" args="2">col</e>
          <e type="function" args="2">augment</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">14</e>
          <e type="operand" style="string">black</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">0.2</e>
          <e type="operator" args="2">+</e>
          <e type="operand">A</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">0.4</e>
          <e type="operator" args="2">+</e>
          <e type="operand" style="string">A</e>
          <e type="operand">12</e>
          <e type="operand" style="string">black</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">14</e>
          <e type="operand" style="string">red</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="operand" style="string">Distance </e>
          <e type="operand" style="string">=</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="function" args="2">L</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="function" args="2">round</e>
          <e type="function" args="1">var2str</e>
          <e type="function" args="3">concat</e>
          <e type="operand">10</e>
          <e type="operand" style="string">red</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">sys</e>
        </input>
      </plot>
    </region>
  </regions>
</worksheet>