﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7251.32800"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>06d91635-396e-463c-8a0c-d54f63bb3cbd</id>
      <revision>33</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="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="8" orientation="Portrait" width="1169" height="1654" />
      <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.7251.32800" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7251.32800" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7251.32800" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="PlotRegion" version="1.11.7251.32800" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="54" top="36" width="1125" height="260" color="#000000" fontSize="10">
      <math optimize="2">
        <description active="true" position="Top" lang="eng">
          <p>dragon - assigns points variable with start point(x0,y0) then appends the Dragon curve. This method minimises the number of plot points.</p>
        </description>
        <input>
          <e type="operand">c</e>
          <e type="operand">x0</e>
          <e type="operand">y0</e>
          <e type="operand">x1</e>
          <e type="operand">y1</e>
          <e type="operand">orientation</e>
          <e type="operand">order</e>
          <e type="function" args="7">dragon</e>
          <e type="operand">Π</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand" style="string">Δ recursively\00A0\calculates\00A0\the\00A0\points\00A0\of\00A0\the\00A0\Dragon\00A0\Curve</e>
          <e type="operand">ξ0</e>
          <e type="operand">ψ0</e>
          <e type="operand">ξ1</e>
          <e type="operand">ψ1</e>
          <e type="operand">OO</e>
          <e type="operand">oo</e>
          <e type="function" args="6">Δ</e>
          <e type="operand">Xm</e>
          <e type="operand">ξ1</e>
          <e type="operand">ξ0</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">c</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">Ym</e>
          <e type="operand">ψ1</e>
          <e type="operand">ψ0</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">c</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">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">oo</e>
          <e type="operand">1</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">OO</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">r</e>
          <e type="operand">ξ0</e>
          <e type="operand">Xm</e>
          <e type="operator" args="2">+</e>
          <e type="operand">Ym</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">s</e>
          <e type="operand">ψ0</e>
          <e type="operand">Xm</e>
          <e type="operator" args="2">+</e>
          <e type="operand">Ym</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">eval</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">r</e>
          <e type="operand">ξ0</e>
          <e type="operand">Xm</e>
          <e type="operator" args="2">+</e>
          <e type="operand">Ym</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">s</e>
          <e type="operand">ψ0</e>
          <e type="operand">Xm</e>
          <e type="operator" args="2">-</e>
          <e type="operand">Ym</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">eval</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="function" args="3">if</e>
          <e type="operand">Π</e>
          <e type="operand">Π</e>
          <e type="operand">ξ0</e>
          <e type="operand">ψ0</e>
          <e type="operand">r</e>
          <e type="operand">s</e>
          <e type="operand">1</e>
          <e type="operand">oo</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="6">Δ</e>
          <e type="operand">r</e>
          <e type="operand">s</e>
          <e type="operand">ξ1</e>
          <e type="operand">ψ1</e>
          <e type="operand">0</e>
          <e type="operand">oo</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="6">Δ</e>
          <e type="function" args="3">stack</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">Π</e>
          <e type="operand">Π</e>
          <e type="operand">ξ1</e>
          <e type="operand">ψ1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="2">stack</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Π</e>
          <e type="operand">x0</e>
          <e type="operand">y0</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">x0</e>
          <e type="operand">y0</e>
          <e type="operand">x1</e>
          <e type="operand">y1</e>
          <e type="operand">orientation</e>
          <e type="operand">order</e>
          <e type="function" args="6">Δ</e>
          <e type="function" args="3">stack</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="342" width="64" height="43" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">c</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="243" top="342" width="270" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="operand">c</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">20</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">12</e>
          <e type="function" args="7">dragon</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="549" top="342" width="270" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">c</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">20</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">12</e>
          <e type="function" args="7">dragon</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="243" top="378" width="95" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">n</e>
          <e type="operand">M</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="369" top="378" width="133" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">τ</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="operand">5</e>
          <e type="function" args="3">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="423" width="307" height="246" color="#000000" fontSize="10">
      <plot grid="false" axes="false" type="2d" render="lines" scale_x="0.5208653241" scale_y="0.5208653241" scale_z="0.5208653241" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="-3" transpose_z="0">
        <input>
          <e type="operand">M</e>
          <e type="operand">N</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
    <region left="459" top="423" width="307" height="246" color="#000000" fontSize="10">
      <plot error="25" grid="false" axes="false" type="2d" render="lines" scale_x="0.5208653241" scale_y="0.5208653241" scale_z="0.5208653241" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="1" transpose_y="-4" transpose_z="0" animate="τ" frameRate="20">
        <input>
          <e type="operand">t</e>
          <e type="operand">n</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">t</e>
          <e type="operand">2</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</e>
          <e type="operand">t</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operand">t</e>
          <e type="operand">t</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">if</e>
          <e type="operand">M</e>
          <e type="operand">1</e>
          <e type="operand">t</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="5">submatrix</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operand">N</e>
          <e type="operand">1</e>
          <e type="operand">t</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="5">submatrix</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
  </regions>
</worksheet>