﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="1.2.9018.0"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>3ff9934e-0071-4049-99d1-c9dc1e9d79f9</id>
      <revision>517</revision>
    </identity>
    <metadata lang="eng">
      <author>Alvaro Diaz Falconi</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <mixedNumbers>false</mixedNumbers>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true" hideElementsHighlightings="false">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="49" bottom="49" />
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="1.2.9018.0" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.9018.0" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.9018.0" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="DotNumerics" version="1.1.8269.16536" guid="2a69099d-3185-4ea7-a130-65f2bf94c8d6" />
      <assembly name="TextRegion" version="1.11.9018.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="ALGLIB® - numerical analysis library" version="1.0.8025.20709" guid="8e40b49c-3681-4332-903d-751303860e7b" />
      <assembly name="PlotRegion" version="1.11.9018.0" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="18" width="271" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p style="font-weight: bold;">Inscribed Circles - Dragilev Method</p>
        </content>
      </text>
    </region>
    <region left="18" top="54" width="87" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Reference:</p>
        </content>
      </text>
    </region>
    <region left="126" top="54" width="124" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>алексей_алексей</p>
        </content>
      </text>
    </region>
    <region left="126" top="81" width="593" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>https://www.mapleprimes.com/posts/226763-Circle-Inscribed-Between-Smooth-Curves</p>
        </content>
      </text>
    </region>
    <region left="18" top="117" width="46" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">R</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="126" top="117" width="411" height="217" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">f</e>
          <e type="operand">f.1</e>
          <e type="operand">x.2</e>
          <e type="operand">x.1</e>
          <e type="function" args="1">exp</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f.2</e>
          <e type="operand">x.3</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x.3</e>
          <e type="operand">x.4</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">2</e>
          <e type="operand">x.4</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">R</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">f.3</e>
          <e type="operand">x.1</e>
          <e type="operand">x.5</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">x.2</e>
          <e type="operand">x.6</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="operand">x.3</e>
          <e type="operand">x.5</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="operand">x.4</e>
          <e type="operand">x.6</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="operator" args="2">:</e>
          <e type="operand">f.4</e>
          <e type="operand">f.1</e>
          <e type="operand">x.1</e>
          <e type="function" args="2">diff</e>
          <e type="operand">x.2</e>
          <e type="operand">x.6</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">f.1</e>
          <e type="operand">x.2</e>
          <e type="function" args="2">diff</e>
          <e type="operand">x.1</e>
          <e type="operand">x.5</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f.5</e>
          <e type="operand">f.2</e>
          <e type="operand">x.3</e>
          <e type="function" args="2">diff</e>
          <e type="operand">x.4</e>
          <e type="operand">x.6</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">f.2</e>
          <e type="operand">x.4</e>
          <e type="function" args="2">diff</e>
          <e type="operand">x.3</e>
          <e type="operand">x.5</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f.6</e>
          <e type="operand">x.1</e>
          <e type="operand">0.5</e>
          <e type="operand">x.4</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="558" top="126" width="73" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Path one</p>
        </content>
      </text>
    </region>
    <region left="18" top="153" width="54" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">80</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="558" top="153" width="73" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Path two</p>
        </content>
      </text>
    </region>
    <region left="558" top="189" width="161" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Sq. Dist. difference</p>
        </content>
      </text>
    </region>
    <region left="558" top="225" width="87" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Tg. to one</p>
        </content>
      </text>
    </region>
    <region left="558" top="261" width="87" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Tg. to two</p>
        </content>
      </text>
    </region>
    <region left="558" top="297" width="146" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>For starting point</p>
        </content>
      </text>
    </region>
    <region left="18" top="342" width="134" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">n</e>
          <e type="operand">f</e>
          <e type="function" args="1">length</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="342" width="72" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">m</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="288" top="342" width="86" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">μ</e>
          <e type="operand">1</e>
          <e type="operand">m</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="414" top="342" width="86" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">r</e>
          <e type="operand">1</e>
          <e type="operand">n</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="531" top="342" width="48" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">c</e>
          <e type="operand">r</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="603" top="342" width="123" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">τ</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="387" width="253" height="60" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">u</e>
          <e type="function" args="1">f</e>
          <e type="operand">x.1</e>
          <e type="operand">x.2</e>
          <e type="operand">x.3</e>
          <e type="operand">x.4</e>
          <e type="operand">x.5</e>
          <e type="operand">x.6</e>
          <e type="operand">1</e>
          <e type="operand">6</e>
          <e type="function" args="8">mat</e>
          <e type="operand">u</e>
          <e type="function" args="1">transpose</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="315" top="387" width="74" height="33" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="operand">μ</e>
          <e type="function" args="2">el</e>
          <e type="operand">x</e>
          <e type="operand">μ</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="423" top="387" width="73" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Φ</e>
          <e type="operand">X</e>
          <e type="function" args="1">f</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="459" width="474" height="107" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Δ</e>
          <e type="operand">μ</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="bracket">(</e>
          <e type="operand">μ</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">≠</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">eval</e>
          <e type="operand">J</e>
          <e type="operand">r</e>
          <e type="operand">c</e>
          <e type="function" args="3">el</e>
          <e type="operand">Φ</e>
          <e type="operand">r</e>
          <e type="function" args="2">el</e>
          <e type="operand">#x#</e>
          <e type="operand">X</e>
          <e type="operand">c</e>
          <e type="operand">μ</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operand">c</e>
          <e type="function" args="3">if</e>
          <e type="function" args="1">eval</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="2">diff</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="1">det</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="522" top="459" width="215" height="54" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">t</e>
          <e type="operand">x</e>
          <e type="function" args="2">D</e>
          <e type="operand">Δ</e>
          <e type="operand">Δ</e>
          <e type="operand">μ</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">norme</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="576" width="346" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Xo</e>
          <e type="operand">m</e>
          <e type="operand">1</e>
          <e type="function" args="2">matrix</e>
          <e type="function" args="1">eval</e>
          <e type="operand">u</e>
          <e type="function" args="1">f</e>
          <e type="function" args="2">al_nleqsolve</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="387" top="576" width="347" height="35" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">X</e>
          <e type="operand">Xo</e>
          <e type="operand">0</e>
          <e type="operand">15</e>
          <e type="operator" args="1">-</e>
          <e type="operand">N</e>
          <e type="operand">D</e>
          <e type="function" args="5">dn_AdamsMoulton</e>
          <e type="operand">τ</e>
          <e type="operand">1</e>
          <e type="operand">μ</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="3">el</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="621" width="328" height="245" color="#000000" fontSize="8" showInputData="false">
      <plot type="2d" render="lines" scale_x="4.90015500800004" scale_y="5.39017050880002" scale_z="61.3075552063022" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-51" transpose_y="-46" transpose_z="0" animate="τ" frameRate="10">
        <input>
          <e type="operand">θ</e>
          <e type="operand">1</e>
          <e type="operand">360</e>
          <e type="operand">5</e>
          <e type="function" args="3">range</e>
          <e type="operand" style="unit">deg</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">c</e>
          <e type="operand">s</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">θ</e>
          <e type="function" args="1">cos</e>
          <e type="function" args="1">vectorize</e>
          <e type="operand">θ</e>
          <e type="function" args="1">sin</e>
          <e type="function" args="1">vectorize</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">a</e>
          <e type="operand">b</e>
          <e type="operand">r</e>
          <e type="function" args="3">C</e>
          <e type="operand">r</e>
          <e type="operand">c</e>
          <e type="operator" args="2">*</e>
          <e type="operand">a</e>
          <e type="operator" args="2">+</e>
          <e type="operand">r</e>
          <e type="operand">s</e>
          <e type="operator" args="2">*</e>
          <e type="operand">b</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="2">augment</e>
          <e type="operator" args="2">:</e>
          <e type="operand">X</e>
          <e type="operand">1</e>
          <e type="function" args="2">col</e>
          <e type="operand">X</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="function" args="2">augment</e>
          <e type="operand">X</e>
          <e type="operand">3</e>
          <e type="function" args="2">col</e>
          <e type="operand">X</e>
          <e type="operand">4</e>
          <e type="function" args="2">col</e>
          <e type="function" args="2">augment</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">5</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">6</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">3</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">5</e>
          <e type="function" args="3">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">X</e>
          <e type="operand">t</e>
          <e type="operand">4</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">6</e>
          <e type="function" args="3">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="3">C</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">2</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">5</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">6</e>
          <e type="function" args="3">el</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">3</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">4</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">5</e>
          <e type="function" args="3">el</e>
          <e type="operand">X</e>
          <e type="operand">t</e>
          <e type="operand">6</e>
          <e type="function" args="3">el</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">sys</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
        </input>
      </plot>
    </region>
    <region left="18" top="891" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
    <region left="261" top="891" width="225" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">1.2.9018.0</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>