﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="1.0.8348.30405"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>ad2e5c76-4287-4cd5-9182-aa1871f07f97</id>
      <revision>5</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <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="1.0.8348.30405" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.8348.30405" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.8051.30522" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.8348.30405" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.8348.30405" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="AreaRegion" version="1.11.8348.30405" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="PlotRegion" version="1.11.8348.30405" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="27" top="18" width="603" height="56" color="#000000" bgColor="#e1ffff" fontSize="32" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="20">
        <content>
          <p style="font-weight: bold; font-family: Courier New; font-size: 32px; background-color: #e1ffff;">Any spiral [c,k,r] ... </p>
        </content>
      </text>
    </region>
    <region top="90" color="#ff0000" bgColor="#ebebeb">
      <area collapsed="true">
        <title lang="eng">
          <content>
            <p>     lookup(value,table,col)     </p>
          </content>
        </title>
      </area>
      <region left="81" top="117" width="427" height="222" border="true" color="#000000" bgColor="#ffffe1" fontSize="10">
        <math optimize="2">
          <input>
            <e type="operand">value</e>
            <e type="operand">table</e>
            <e type="operand">col</e>
            <e type="function" args="3">lookup</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">j</e>
            <e type="operand">k</e>
            <e type="operand">table</e>
            <e type="function" args="1">rows</e>
            <e type="function" args="2">range</e>
            <e type="operand">table</e>
            <e type="operand">j</e>
            <e type="operand">col</e>
            <e type="function" args="3">el</e>
            <e type="operand">value</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">index</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">j</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</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">continue</e>
            <e type="function" args="3">if</e>
            <e type="function" args="3">for</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">index</e>
            <e type="operand" style="string">NO match</e>
            <e type="operator" args="2">:</e>
            <e type="operand">index</e>
            <e type="function" args="3">if</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 top="378" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="18" top="405" width="196" height="31" color="#000000" fontSize="12">
      <math>
        <description active="true" position="Right" lang="eng">
          <content>
            <p> ◄  The composite 'any' coefficients </p>
          </content>
        </description>
        <input>
          <e type="operand">c</e>
          <e type="operand">0.125</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">0.125</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </input>
      </math>
    </region>
    <region left="459" top="432" width="77" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">i</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
        </result>
      </math>
    </region>
    <region left="18" top="441" width="174" height="26" color="#000000" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <content>
            <p> ◄  The governing function</p>
          </content>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">any</e>
          <e type="operand">c</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">k</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">exp</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="477" width="270" height="89" border="true" color="#000000" bgColor="#ffffe1" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">start</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">end</e>
          <e type="operand">5</e>
          <e type="operand">π</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">N</e>
          <e type="operand">1000</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">u</e>
          <e type="operand">v</e>
          <e type="operand">N</e>
          <e type="function" args="3">var</e>
          <e type="operand">u</e>
          <e type="operand">v</e>
          <e type="operand">u</e>
          <e type="operand">v</e>
          <e type="operand">u</e>
          <e type="operator" args="2">-</e>
          <e type="operand">N</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="function" args="3">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x</e>
          <e type="operand">start</e>
          <e type="operand">end</e>
          <e type="operand">N</e>
          <e type="function" args="3">var</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">sys</e>
        </input>
      </math>
    </region>
    <region left="459" top="477" width="62" height="24" color="#000000" fontSize="10">
      <math optimize="2">
        <description active="true" position="Right" lang="eng">
          <content>
            <p>± svg the spiral</p>
          </content>
        </description>
        <input>
          <e type="operand">r</e>
          <e type="operand">1.5</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="459" top="504" width="251" height="35" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">r</e>
          <e type="operand">x</e>
          <e type="function" args="2">Ψ</e>
          <e type="operand">r</e>
          <e type="operand">e</e>
          <e type="operand">i</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="operand">x</e>
          <e type="function" args="1">any</e>
          <e type="operator" args="2">*</e>
          <e type="operand">i</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>
        </input>
      </math>
    </region>
    <region left="459" top="540" width="127" height="34" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">U</e>
          <e type="operand">r</e>
          <e type="operand">x</e>
          <e type="function" args="2">Ψ</e>
          <e type="function" args="1">Re</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="612" top="540" width="127" height="34" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">V</e>
          <e type="operand">r</e>
          <e type="operand">x</e>
          <e type="function" args="2">Ψ</e>
          <e type="function" args="1">Im</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="459" top="576" width="205" height="28" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">ANY</e>
          <e type="operand">U</e>
          <e type="operand">V</e>
          <e type="function" args="2">augment</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="594" width="384" height="51" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math exponentialThreshold="15">
        <description active="true" position="Right" lang="eng">
          <content>
            <p>Extremas</p>
          </content>
        </description>
        <input>
          <e type="operand">Extr</e>
          <e type="operand">ANY</e>
          <e type="operand">1</e>
          <e type="function" args="2">row</e>
          <e type="operand">ANY</e>
          <e type="operand">ANY</e>
          <e type="function" args="1">rows</e>
          <e type="function" args="2">row</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">1.6997</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">12.0839</e>
          <e type="operand">0.1898</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </result>
      </math>
    </region>
    <region left="18" top="657" width="374" height="30" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ROW_1</e>
          <e type="operand">ANY</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="function" args="1">Max</e>
          <e type="operand">ANY</e>
          <e type="operand">2</e>
          <e type="function" args="3">lookup</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">709</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="684" width="275" height="27" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ANY</e>
          <e type="operand">ROW_1</e>
          <e type="function" args="2">row</e>
        </input>
        <result action="numeric">
          <e type="operand">0.8554</e>
          <e type="operator" args="1">-</e>
          <e type="operand">6.7714</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="729" width="374" height="30" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ROW_2</e>
          <e type="operand">ANY</e>
          <e type="operand">1</e>
          <e type="function" args="2">col</e>
          <e type="function" args="1">Min</e>
          <e type="operand">ANY</e>
          <e type="operand">1</e>
          <e type="function" args="3">lookup</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">809</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="756" width="279" height="27" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ANY</e>
          <e type="operand">ROW_2</e>
          <e type="function" args="2">row</e>
        </input>
        <result action="numeric">
          <e type="operand">8.2404</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1.041</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </result>
      </math>
    </region>
    <region left="450" top="765" width="283" height="92" color="#000000" bgColor="#f5f5f5" fontSize="14" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="20">
        <content>
          <p style="font-family: Courier New; font-size: 14px; background-color: #f5f5f5;">The spiral system ... <br />is fully automated wrt<br />the command line [c,k,r]<br />'r' is + in this demo.</p>
        </content>
      </text>
    </region>
    <region left="18" top="801" width="374" height="30" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ROW_3</e>
          <e type="operand">ANY</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="function" args="1">Min</e>
          <e type="operand">ANY</e>
          <e type="operand">2</e>
          <e type="function" args="3">lookup</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">909</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="828" width="283" height="27" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math>
        <input>
          <e type="operand">ANY</e>
          <e type="operand">ROW_3</e>
          <e type="function" args="2">row</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2669</e>
          <e type="operand">10.0282</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="864" width="336" height="72" color="#000000" bgColor="#e1ff80" fontSize="10">
      <math decimalPlaces="3">
        <input>
          <e type="operand">data</e>
          <e type="operand">ANY</e>
          <e type="operand">ROW_1</e>
          <e type="function" args="2">row</e>
          <e type="operand">ANY</e>
          <e type="operand">ROW_2</e>
          <e type="function" args="2">row</e>
          <e type="operand">ANY</e>
          <e type="operand">ROW_3</e>
          <e type="function" args="2">row</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">sys</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.855</e>
          <e type="operator" args="1">-</e>
          <e type="operand">6.771</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">8.24</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1.041</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">1.267</e>
          <e type="operand">10.028</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">sys</e>
        </result>
      </math>
    </region>
    <region left="396" top="864" width="342" height="222" color="#000000" bgColor="#f5f5f5" fontSize="10">
      <math>
        <input>
          <e type="operand">plot</e>
          <e type="operand">ANY</e>
          <e type="operand">data</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">data</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="3">el</e>
          <e type="operand" style="string">+</e>
          <e type="operand">40</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">data</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">data</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="3">el</e>
          <e type="operand" style="string">+</e>
          <e type="operand">40</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">data</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">data</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="3">el</e>
          <e type="operand" style="string">+</e>
          <e type="operand">40</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">Extr</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">Extr</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="3">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">16</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">Extr</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">Extr</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="3">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">16</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">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">sys</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="45" top="1008" width="184" height="37" color="#000000" bgColor="#ffff80" fontSize="10">
      <math decimalPlaces="15">
        <input>
          <e type="operand">t</e>
          <e type="function" args="1">X</e>
          <e type="operand">U</e>
          <e type="operand">t</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">t</e>
          <e type="function" args="1">Y</e>
          <e type="operand">V</e>
          <e type="operand">t</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </input>
      </math>
    </region>
    <region left="45" top="1053" width="152" height="28" color="#000000" bgColor="#ffff80" fontSize="10">
      <math decimalPlaces="15">
        <input>
          <e type="operand">τ</e>
          <e type="operand">1</e>
          <e type="operand">U</e>
          <e type="function" args="1">rows</e>
          <e type="operand">5</e>
          <e type="function" args="3">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="432" top="1080" width="251" height="172" color="#000000" bgColor="#ebebeb" fontSize="10">
      <plot type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0">
        <description active="true" position="Top" lang="eng">
          <content>
            <p>3 parameters command line spiral</p>
          </content>
        </description>
        <input>
          <e type="operand">plot</e>
        </input>
      </plot>
    </region>
    <region left="45" top="1089" width="279" height="190" color="#000000" bgColor="#ebebeb" fontSize="10" showInputData="false">
      <plot type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0" animate="τ" frameRate="50">
        <input>
          <e type="operand">t</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">path</e>
          <e type="operand">t</e>
          <e type="function" args="1">X</e>
          <e type="operand">t</e>
          <e type="function" args="1">Y</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">path</e>
          <e type="operand">path</e>
          <e type="operand">t</e>
          <e type="function" args="1">X</e>
          <e type="operand">t</e>
          <e type="function" args="1">Y</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">Extr</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">el</e>
          <e type="operand">Extr</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="3">el</e>
          <e type="operand" style="string">.</e>
          <e type="operand">16</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">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
  </regions>
</worksheet>