﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7610.506"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>3edf2b4d-835a-49bd-b9f2-3762f0a4a242</id>
      <revision>73</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="true" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="0" orientation="Portrait" width="826" 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.7610.506" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7610.506" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.7486.2690" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.7610.506" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7610.506" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="45" top="27" width="61" height="226" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">S</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="189" top="27" width="123" height="226" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a.vert</e>
          <e type="operand">600</e>
          <e type="operand">550</e>
          <e type="operand">500</e>
          <e type="operand">450</e>
          <e type="operand">400</e>
          <e type="operand">350</e>
          <e type="operand">300</e>
          <e type="operand">250</e>
          <e type="operand">200</e>
          <e type="operand">150</e>
          <e type="operand">100</e>
          <e type="operand">50</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
          <e type="operand" style="unit">mm</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="378" top="117" width="108" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b.bunn</e>
          <e type="operand">100</e>
          <e type="operand" style="unit">mm</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="513" top="117" width="110" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">fall\0020\steg</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="396" top="171" width="303" height="57" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng">
        <p>what is the "best practice" when it
comes to reusing the indexes used in
programming (for loops, sums etc.)?</p>
      </text>
    </region>
    <region top="270" color="#000000">
      <area collapsed="true">
        <title lang="eng">
          <p></p>
        </title>
      </area>
      <region left="27" top="297" width="128" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">n</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</e>
            <e type="operator" args="2">:</e>
          </input>
          <result action="numeric">
            <e type="operand">12</e>
          </result>
        </math>
      </region>
      <region left="27" top="333" width="204" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">α</e>
            <e type="operand">fall\0020\steg</e>
            <e type="function" args="1">atan</e>
            <e type="operator" args="2">:</e>
          </input>
          <contract>
            <e type="operand" style="unit">°</e>
          </contract>
          <result action="numeric">
            <e type="operand">45</e>
          </result>
        </math>
      </region>
      <region left="27" top="378" width="306" height="226" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">a.hor</e>
            <e type="operand">b.bunn</e>
            <e type="operand">2</e>
            <e type="operator" args="2">/</e>
            <e type="operand">a.vert</e>
            <e type="operand">fall\0020\steg</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
          </input>
          <contract>
            <e type="operand" style="unit">mm</e>
          </contract>
          <result action="numeric">
            <e type="operand">650</e>
            <e type="operand">600</e>
            <e type="operand">550</e>
            <e type="operand">500</e>
            <e type="operand">450</e>
            <e type="operand">400</e>
            <e type="operand">350</e>
            <e type="operand">300</e>
            <e type="operand">250</e>
            <e type="operand">200</e>
            <e type="operand">150</e>
            <e type="operand">100</e>
            <e type="operand">12</e>
            <e type="operand">1</e>
            <e type="function" args="14">mat</e>
          </result>
        </math>
      </region>
      <region left="27" top="612" width="258" height="60" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="function" args="2">range</e>
            <e type="operand">a</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operand">a.vert</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operand">a.hor</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operand">α</e>
            <e type="function" args="1">cos</e>
            <e type="operator" args="2">*</e>
            <e type="function" args="2">Min</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
          </input>
        </math>
      </region>
      <region left="27" top="684" width="135" height="226" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">a</e>
          </input>
          <contract>
            <e type="operand" style="unit">mm</e>
          </contract>
          <result action="numeric">
            <e type="operand">459.6194</e>
            <e type="operand">424.2641</e>
            <e type="operand">388.9087</e>
            <e type="operand">353.5534</e>
            <e type="operand">318.1981</e>
            <e type="operand">282.8427</e>
            <e type="operand">247.4874</e>
            <e type="operand">212.132</e>
            <e type="operand">176.7767</e>
            <e type="operand">141.4214</e>
            <e type="operand">100</e>
            <e type="operand">50</e>
            <e type="operand">12</e>
            <e type="operand">1</e>
            <e type="function" args="14">mat</e>
          </result>
        </math>
      </region>
      <region left="27" top="918" width="258" height="132" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">a.m.0</e>
            <e type="operand">S</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operand">a</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="function" args="4">sum</e>
            <e type="operand">S</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="bracket">(</e>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="function" args="4">sum</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">:</e>
          </input>
          <contract>
            <e type="operand" style="unit">mm</e>
          </contract>
          <result action="numeric">
            <e type="operand">262.9337</e>
          </result>
        </math>
      </region>
      <region left="27" top="1062" width="62" height="30" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">PS.0</e>
            <e type="operand">S</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="27" top="1107" width="292" height="432" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operand">100</e>
            <e type="function" args="2">range</e>
            <e type="operand">PS</e>
            <e type="operand">1</e>
            <e type="operand">i</e>
            <e type="function" args="3">el</e>
            <e type="operand">PS.0</e>
            <e type="operator" args="2">:</e>
            <e type="operand">a.m</e>
            <e type="operand">1</e>
            <e type="operand">i</e>
            <e type="function" args="3">el</e>
            <e type="operand">a.m.0</e>
            <e type="operator" args="2">:</e>
            <e type="operand">j</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="function" args="2">range</e>
            <e type="operand">a</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operand">0.5</e>
            <e type="operand">a.m</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">&lt;</e>
            <e type="bracket">(</e>
            <e type="operand">a</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operand">40</e>
            <e type="operand" style="unit">mm</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">&lt;</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">|</e>
            <e type="operand">PS.i</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operand">0</e>
            <e type="operator" args="2">:</e>
            <e type="operand">PS.i</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
            <e type="function" args="3">for</e>
            <e type="operand">a.m.i</e>
            <e type="operand">PS.i</e>
            <e type="operand">l</e>
            <e type="function" args="2">el</e>
            <e type="operand">a</e>
            <e type="operand">l</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">l</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="function" args="4">sum</e>
            <e type="operand">PS.i</e>
            <e type="function" args="1">sum</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">:</e>
            <e type="operand">PS.i</e>
            <e type="function" args="1">sum</e>
            <e type="bracket">(</e>
            <e type="operand">PS.0</e>
            <e type="function" args="1">sum</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">&lt;</e>
            <e type="operand">a.m.0</e>
            <e type="operand">a.m.i</e>
            <e type="operator" args="2">:</e>
            <e type="operand">PS.0</e>
            <e type="operand">PS.i</e>
            <e type="operator" args="2">:</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">line</e>
            <e type="operand">break</e>
            <e type="function" args="3">if</e>
            <e type="operand">5</e>
            <e type="operand">1</e>
            <e type="function" args="7">line</e>
            <e type="function" args="3">for</e>
          </input>
        </math>
      </region>
      <region top="1557" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="27" top="1593" width="73" height="226" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">PS.0</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
        </result>
      </math>
    </region>
    <region left="126" top="1593" width="140" height="229" color="#000000" fontSize="10">
      <math matrixOptions="0,0,3,3">
        <input>
          <e type="operand">PS</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="360" top="1593" width="73" height="226" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">PS.i</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">12</e>
          <e type="operand">1</e>
          <e type="function" args="14">mat</e>
        </result>
      </math>
    </region>
    <region left="504" top="1701" width="42" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">i</e>
        </input>
        <result action="numeric">
          <e type="operand">3</e>
        </result>
      </math>
    </region>
    <region left="27" top="1836" width="139" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a.m.0</e>
        </input>
        <contract>
          <e type="operand" style="unit">mm</e>
        </contract>
        <result action="numeric">
          <e type="operand">318.1981</e>
        </result>
      </math>
    </region>
    <region left="171" top="1836" width="281" height="31" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a.m</e>
        </input>
        <contract>
          <e type="operand" style="unit">mm</e>
        </contract>
        <result action="numeric">
          <e type="operand">262.9337</e>
          <e type="operand">300.5204</e>
          <e type="operand">318.1981</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="540" top="1836" width="139" height="30" color="#000000" fontSize="10">
      <math>
        <description active="false" position="Right" lang="eng">
          <p></p>
        </description>
        <input>
          <e type="operand">a.m.i</e>
        </input>
        <contract>
          <e type="operand" style="unit">mm</e>
        </contract>
        <result action="numeric">
          <e type="operand">318.1981</e>
        </result>
      </math>
    </region>
    <region left="27" top="1881" width="618" height="47" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">control</e>
          <e type="operand" style="string">no iterations</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">var2str</e>
          <e type="operand" style="string"> iterations has been performed</e>
          <e type="function" args="2">concat</e>
          <e type="function" args="3">cases</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="1944" width="348" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">control</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">2 iterations has been performed</e>
        </result>
      </math>
    </region>
    <region left="27" top="1989" width="264" height="100" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a.cog</e>
          <e type="operand">PS.i</e>
          <e type="operand">m</e>
          <e type="function" args="2">el</e>
          <e type="operand">a.vert</e>
          <e type="operand">m</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="operand">m</e>
          <e type="operand">1</e>
          <e type="operand">n</e>
          <e type="function" args="4">sum</e>
          <e type="operand">PS.i</e>
          <e type="function" args="1">sum</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <contract>
          <e type="operand" style="unit">mm</e>
        </contract>
        <result action="numeric">
          <e type="operand">400</e>
        </result>
      </math>
    </region>
    <region left="27" top="2106" width="298" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b.cog</e>
          <e type="operand">b.bunn</e>
          <e type="operand">2</e>
          <e type="operand">a.cog</e>
          <e type="operator" args="2">*</e>
          <e type="operand">fall\0020\steg</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
        <contract>
          <e type="operand" style="unit">mm</e>
        </contract>
        <result action="numeric">
          <e type="operand">900</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>