﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7921.69"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="120">
    <identity>
      <id>7b313f25-4e9d-41e0-ad6c-d166d52deb2c</id>
      <revision>282</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="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="0.99.7921.69" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.7921.69" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.7840.30466" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.7921.69" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7921.69" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="AreaRegion" version="1.11.7921.69" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="PlotRegion" version="1.11.7921.69" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="18" width="120" height="27" color="#800000" fontSize="12" isBreakable="false">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p style="font-weight: bold; color: #800000; font-size: 12px;">Code utility</p>
        </content>
      </text>
    </region>
    <region top="54" color="#000000">
      <area collapsed="true">
        <title lang="eng">
          <content>
            <p>Code</p>
          </content>
        </title>
      </area>
      <region left="54" top="81" width="76" height="24" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
                <p>
                  <br />
                </p>
              </content>
          </description>
          <input>
            <e type="operand" style="unit">Enter</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="162" top="81" width="211" height="26" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
            <p>
              <br />
            </p>
          </content>
          </description>
          <input>
            <e type="operand" style="unit">Enter</e>
            <e type="operand" style="unit">Enter</e>
            <e type="function" args="1">description</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="54" top="153" width="587" height="1432" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">Code</e>
            <e type="operand">Σ</e>
            <e type="operand">x</e>
            <e type="operand" style="string">¶</e>
            <e type="operand" style="unit">Enter</e>
            <e type="function" args="3">strrep</e>
            <e type="operand" style="unit">Enter</e>
            <e type="function" args="2">strsplit</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">Σ</e>
            <e type="function" args="1">length</e>
            <e type="function" args="2">range</e>
            <e type="operand">f</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">//</e>
            <e type="function" args="2">findstr</e>
            <e type="operator" args="2">:</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">0</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">f</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="3">substr</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
            <e type="operand">f</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">...</e>
            <e type="function" args="2">findstr</e>
            <e type="operator" args="2">:</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">0</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">el</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">f</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="3">substr</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string"></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="function" args="3">if</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">line</e>
            <e type="function" args="3">for</e>
            <e type="operand">S</e>
            <e type="operand" style="string"></e>
            <e type="operand" style="string"></e>
            <e type="function" args="2">stack</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">Σ</e>
            <e type="function" args="1">length</e>
            <e type="operand">1</e>
            <e type="function" args="2">range</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string"> </e>
            <e type="operand" style="string"></e>
            <e type="function" args="3">strrep</e>
            <e type="function" args="1">strlen</e>
            <e type="operand">0</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">S</e>
            <e type="operand">Σ</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">       </e>
            <e type="function" args="2">concat</e>
            <e type="operand">S</e>
            <e type="function" args="2">stack</e>
            <e type="function" args="1">eval</e>
            <e type="operator" args="2">:</e>
            <e type="operand">continue</e>
            <e type="function" args="3">if</e>
            <e type="function" args="3">for</e>
            <e type="operand">nw</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">W</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">mat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">w</e>
            <e type="operand">S</e>
            <e type="function" args="1">length</e>
            <e type="operand">1</e>
            <e type="function" args="2">matrix</e>
            <e type="function" args="1">eval</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">k</e>
            <e type="function" args="1">L</e>
            <e type="operand" style="string">#LINE#</e>
            <e type="operand">k</e>
            <e type="function" args="1">num2str</e>
            <e type="function" args="2">concat</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">line</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">nb</e>
            <e type="function" args="2">q</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">nb</e>
            <e type="operand">4</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string">else</e>
            <e type="operator" args="2">≡</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">line</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">2</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</e>
            <e type="operand">2</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="function" args="2">range</e>
            <e type="operand">w</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand">w</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string"> </e>
            <e type="operator" args="2">≠</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">+</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="function" args="2">q</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</e>
            <e type="operand">2</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="function" args="2">range</e>
            <e type="operand">p</e>
            <e type="operand" style="string">for </e>
            <e type="operand" style="string">while </e>
            <e type="operand" style="string">if </e>
            <e type="operand" style="string">else</e>
            <e type="operand">1</e>
            <e type="operand">4</e>
            <e type="function" args="6">mat</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">p</e>
            <e type="function" args="1">strlen</e>
            <e type="function" args="3">substr</e>
            <e type="operand">p</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">hasP</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">p</e>
            <e type="operand">p</e>
            <e type="operand" style="string"> </e>
            <e type="operand" style="string"></e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="operand">np</e>
            <e type="operand">p</e>
            <e type="function" args="1">strlen</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">break</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">line</e>
            <e type="operand">hasP</e>
            <e type="operand">0</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">line</e>
            <e type="function" args="3">for</e>
            <e type="operand">hasP</e>
            <e type="operand">1</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">p</e>
            <e type="operand" style="string">(</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">np</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">substr</e>
            <e type="operand" style="string">,line(</e>
            <e type="function" args="4">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nw</e>
            <e type="operand">nw</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nb</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">b</e>
            <e type="operand" style="string"></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">S</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">el</e>
            <e type="operand">nb</e>
            <e type="operand">1</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string"> </e>
            <e type="operator" args="2">≡</e>
            <e type="operand">nb</e>
            <e type="operand">nb</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="operand">b</e>
            <e type="operand">b</e>
            <e type="operand" style="string"> </e>
            <e type="function" args="2">concat</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="2">while</e>
            <e type="operand">u</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="bracket">(</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</e>
            <e type="operand">2</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="function" args="2">range</e>
            <e type="operand">S</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">nb</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="3">substr</e>
            <e type="operand">b</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">w</e>
            <e type="operand">nw</e>
            <e type="function" args="2">el</e>
            <e type="operand">w</e>
            <e type="operand">nw</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="operand">nb</e>
            <e type="operand">1</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string"> </e>
            <e type="operator" args="2">≠</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">+</e>
            <e type="operand">u</e>
            <e type="operand">nb</e>
            <e type="function" args="2">q</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">:</e>
            <e type="operand">S</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="operand">nb</e>
            <e type="function" args="2">substr</e>
            <e type="operand" style="string">,   </e>
            <e type="function" args="2">concat</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="function" args="3">for</e>
            <e type="operand">W</e>
            <e type="operand">nw</e>
            <e type="function" args="2">el</e>
            <e type="operand">u</e>
            <e type="operator" args="2">:</e>
            <e type="operand">5</e>
            <e type="operand">1</e>
            <e type="function" args="7">line</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">,</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string"> </e>
            <e type="operand" style="string"></e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">,,</e>
            <e type="function" args="2">findstr</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">≠</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">,,</e>
            <e type="operand" style="string">,</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="2">while</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">(,</e>
            <e type="operand" style="string">(</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</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>
            <e type="operand">u</e>
            <e type="operand">1</e>
            <e type="operand">nw</e>
            <e type="function" args="2">range</e>
            <e type="operand">S</e>
            <e type="operand">W</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">el</e>
            <e type="operand">u</e>
            <e type="function" args="1">L</e>
            <e type="operand" style="string">)),</e>
            <e type="operand">S</e>
            <e type="operand">W</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">el</e>
            <e type="function" args="3">concat</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">C</e>
            <e type="operand">S</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand">1</e>
            <e type="operand">S</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string">:line(</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">2</e>
            <e type="operand">S</e>
            <e type="function" args="1">rows</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="operand">C</e>
            <e type="operand">C</e>
            <e type="operand">S</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">,line(,</e>
            <e type="operand" style="string">,line(</e>
            <e type="function" args="3">strrep</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">u</e>
            <e type="operand">nw</e>
            <e type="operand">1</e>
            <e type="function" args="2">range</e>
            <e type="operand">C</e>
            <e type="operand">C</e>
            <e type="operand">u</e>
            <e type="function" args="1">L</e>
            <e type="operand">w</e>
            <e type="operand">u</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">num2str</e>
            <e type="operand" style="string">,1</e>
            <e type="function" args="2">concat</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">C</e>
            <e type="operand">C</e>
            <e type="operand">1</e>
            <e type="operand">C</e>
            <e type="function" args="1">strlen</e>
            <e type="operand">2</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="3">substr</e>
            <e type="operand" style="string">),else(line(</e>
            <e type="operand" style="string">,line(</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="operand">C</e>
            <e type="operand">C</e>
            <e type="operand" style="string">#</e>
            <e type="operand" style="string">_local_</e>
            <e type="operand">S</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">(</e>
            <e type="function" args="2">strsplit</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">concat</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="operand" style="string">line(</e>
            <e type="operand">C</e>
            <e type="operand" style="string">,1,2,1)</e>
            <e type="function" args="3">concat</e>
            <e type="operand">16</e>
            <e type="operand">1</e>
            <e type="function" args="18">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region top="1593" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region top="1620" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>Sintaxis</p>
          </content>
        </title>
      </area>
      <region left="18" top="1647" width="70" height="24" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>test(a,b#) // fn name<br />// Code <br />x:a+1<br />y:b#-1 // subs # by local<br />cond:1<br /><br />// while loop<br />while cond1<br />  // for loop<br />  for k,rng<br />    r:19 <br />    s:20 <br />  // if clause<br />  if cond2<br />    t:21<br />    u:22<br />  else<br />    v#:23<br /><br />m:mat( ... // continue<br /> x,y, ...  // in<br /> r,s, ...  // next line<br /> 2,2)<br /><br />m+v#</p>
            </content>
          </description>
          <input>
            <e type="operand">test</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="225" top="1647" width="73" height="24" color="#000000" fontSize="10" isBreakable="false">
        <text lang="eng" fontFamily="Consolas" fontSize="10">
          <content>
            <p style="font-weight: bold;">Sintaxis</p>
          </content>
        </text>
      </region>
      <region left="324" top="1647" width="447" height="40" color="#000000" fontSize="10">
        <text lang="eng" fontFamily="Consolas" fontSize="10">
          <content>
            <p>Code take the script in the description and try to convert it into a SMath function</p>
          </content>
        </text>
      </region>
      <region left="225" top="1701" width="225" height="28" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">C</e>
            <e type="operand">test</e>
            <e type="function" args="1">description</e>
            <e type="function" args="1">Code</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="225" top="1728" width="1780" height="24" color="#000000" fontSize="10">
        <math matrixOptions="0,0,1,59">
          <input>
            <e type="operand">C</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">line(test(a,b_local_test):line(x:a+1,y:b_local_test-1,cond:1,while(cond1,line(for(k,rng,line(r:19,s:20,2,1)),if(cond2,line(t:21,u:22,2,1),line(v_local_test:23,1,1)),2,1)),m:mat(x,y,r,s,2,2),m+v_local_test,6,1),1,2,1)</e>
          </result>
        </math>
      </region>
      <region left="225" top="1764" width="381" height="286" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">a</e>
            <e type="operand">b_local_test</e>
            <e type="function" args="2">test</e>
            <e type="operand">x</e>
            <e type="operand">a</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="operand">y</e>
            <e type="operand">b_local_test</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">:</e>
            <e type="operand">cond</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">cond1</e>
            <e type="operand">k</e>
            <e type="operand">rng</e>
            <e type="operand">r</e>
            <e type="operand">19</e>
            <e type="operator" args="2">:</e>
            <e type="operand">s</e>
            <e type="operand">20</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="function" args="3">for</e>
            <e type="operand">cond2</e>
            <e type="operand">t</e>
            <e type="operand">21</e>
            <e type="operator" args="2">:</e>
            <e type="operand">u</e>
            <e type="operand">22</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">v_local_test</e>
            <e type="operand">23</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">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">line</e>
            <e type="function" args="2">while</e>
            <e type="operand">m</e>
            <e type="operand">x</e>
            <e type="operand">y</e>
            <e type="operand">r</e>
            <e type="operand">s</e>
            <e type="operand">2</e>
            <e type="operand">2</e>
            <e type="function" args="6">mat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">m</e>
            <e type="operand">v_local_test</e>
            <e type="operator" args="2">+</e>
            <e type="operand">6</e>
            <e type="operand">1</e>
            <e type="function" args="8">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region top="2052" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region top="2070" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>Examples</p>
          </content>
        </title>
      </area>
      <region left="18" top="2097" width="70" height="24" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>RREF(M) // Rew reduced echelon form<br />stack( A:M, B:A )<br />stack( m:rows(A), n:cols(A) )<br />stack( r:1, c:1)<br />ro:range(1,m)<br />while (r≤m)&amp;(c≤n)<br />  if el(A,r,c)≡0<br />    h:range(r,m)<br />    el(A,h,c):0<br />    c:c+1<br />  else<br />    k:range(c,n)<br />    f:el(A,r,c)<br />    el(A,r,k):el(A,r,k)/f<br />    el(B,ro,k):el(A,ro,k)- ...<br />      if(ro≠r,el(A,ro,c)*el(A,r,k),0)<br />    el(A,ro,k):el(B,ro,k)<br />    stack( r:r+1, c:c+1)<br />A</p>
            </content>
          </description>
          <input>
            <e type="operand">RREF</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="432" top="2097" width="292" height="30" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">RREF</e>
            <e type="function" args="1">description</e>
            <e type="function" args="1">Code</e>
            <e type="function" args="1">str2num</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
          </result>
        </math>
      </region>
      <region left="432" top="2142" width="260" height="65" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">M</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="operand">3</e>
            <e type="operand">4</e>
            <e type="operand">5</e>
            <e type="operand">6</e>
            <e type="operand">7</e>
            <e type="operand">8</e>
            <e type="operand">9</e>
            <e type="operand">3</e>
            <e type="operand">3</e>
            <e type="function" args="11">mat</e>
            <e type="operand">3</e>
            <e type="function" args="1">identity</e>
            <e type="function" args="2">augment</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="432" top="2223" width="296" height="63" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">M</e>
            <e type="function" args="1">RREF</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
            <e type="operand">0</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operand">0</e>
            <e type="operand">2.6667</e>
            <e type="operator" args="1">-</e>
            <e type="operand">1.6667</e>
            <e type="operand">0</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="operand">0</e>
            <e type="operand">2.3333</e>
            <e type="operand">1.3333</e>
            <e type="operator" args="1">-</e>
            <e type="operand">0</e>
            <e type="operand">0</e>
            <e type="operand">0</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="operator" args="1">-</e>
            <e type="operand">1</e>
            <e type="operand">3</e>
            <e type="operand">6</e>
            <e type="function" args="20">mat</e>
          </result>
        </math>
      </region>
      <region left="18" top="2412" width="110" height="24" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Bisection(f(1),α,β,ε)<br />// Bisection method<br /><br />stack( a:α, b:β )<br />stack( fa:f(a), fb:f(b) )<br /><br />if sign(fa)*sign(fb)&gt;0<br />  error("Wrong interval")<br />else<br />  if fa≡0<br />    c:a<br />  else<br />    if fb≡0<br />      c:b<br />    else<br />      N:1+trunc(log(abs({b-a}/ε),2))<br />      for iter, range(1,N)<br />        c:{a+b}/2<br />        fc:f(c)<br />        if fc≡0<br />          break<br />        else<br />          if sign(fa)*sign(fc)&gt;0<br />            a:c<br />            fa:fc<br />          else<br />            b:c<br />            fb:fc<br />c</p>
            </content>
          </description>
          <input>
            <e type="operand">Bisection</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="432" top="2412" width="332" height="30" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">Bisection</e>
            <e type="function" args="1">description</e>
            <e type="function" args="1">Code</e>
            <e type="function" args="1">str2num</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
          </result>
        </math>
      </region>
      <region left="432" top="2475" width="147" height="34" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">x</e>
            <e type="operand">3</e>
            <e type="operator" args="2">^</e>
            <e type="operand">2</e>
            <e type="operand">x</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">-</e>
            <e type="operand">5</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="432" top="2511" width="290" height="36" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">1</e>
            <e type="operand">4</e>
            <e type="operand">10</e>
            <e type="operand">7</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="function" args="4">Bisection</e>
          </input>
          <result action="numeric">
            <e type="operand">2.0946</e>
          </result>
        </math>
      </region>
      <region left="432" top="2574" width="232" height="167" color="#000000" fontSize="10">
        <plot type="2d" render="lines" scale_x="0.48264140268647" scale_y="4.0674438692315" scale_z="125.735592914938" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-32" transpose_y="-2" transpose_z="0">
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
          </input>
        </plot>
      </region>
      <region left="18" top="2880" width="54" height="24" color="#000000" fontSize="10">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>RK(D#(2),xo#,to#,te#,N#,ε#)<br /><br />// Runge–Kutta method<br />// with adaptive step<br /><br />X#:xo#<br />h#:{te#-to#}/{N#+1}<br />for t#:to#+h#,t#≤te#+to#+h#,t#:t#+h#<br />  x#:col(X#,cols(X#))<br />  k1#:h#/3*eval(D#(t#,x#))<br />  k2#:h#/3*eval(D#(t#+h#/3,x#+k1#))<br />  k3#:h#/3*eval(D#(t#+h#/3,x#+{k1#+k2#}/2))<br />  k4#:h#/3*eval(D#(t#+h#/2,x#+{3*k1#+9*k3#}/8))<br />  k5#:h#/3*eval(D#(t#+h#,x#+{3*k1#-9*k3#}/2+6*k4#))<br />  δ#:k1#-9/2*k3#+4*k4#-1/2*k5#<br />  if normi(δ#)≤5*ε#<br />    X#:augment(X#,x#+1/2*(k1#+4*k4#+k5#))<br />    el(T#,1,cols(X#)):t#<br />    h#:h#*2<br />  else <br />    t#:t#-h#<br />    h#:h#/2<br />transpose(stack(T#,X#))</p>
            </content>
          </description>
          <input>
            <e type="operand">RK</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="432" top="2880" width="276" height="30" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">RK</e>
            <e type="function" args="1">description</e>
            <e type="function" args="1">Code</e>
            <e type="function" args="1">str2num</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
          </result>
        </math>
      </region>
      <region left="432" top="2916" width="305" height="110" 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">x</e>
            <e type="operand">2</e>
            <e type="function" args="2">el</e>
            <e type="operand">5</e>
            <e type="operand">x</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">*</e>
            <e type="operand">x</e>
            <e type="operand">2</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">+</e>
            <e type="operand">t</e>
            <e type="function" args="1">sin</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="operator" args="1">-</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">mat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">RK</e>
            <e type="operand">t</e>
            <e type="operand">x</e>
            <e type="function" args="2">D</e>
            <e type="operand">1</e>
            <e type="operand">0</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">mat</e>
            <e type="operand">0</e>
            <e type="operand">6</e>
            <e type="operand">200</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="function" args="6">RK</e>
            <e type="operator" args="2">:</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">line</e>
          </input>
        </math>
      </region>
      <region left="432" top="3033" width="232" height="167" color="#000000" fontSize="10">
        <plot type="2d" render="lines" scale_x="6.11590904484146" scale_y="15.8630929717149" scale_z="97.0172337848725" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-42" transpose_y="21" transpose_z="0">
          <input>
            <e type="operand">RK</e>
            <e type="operand">2</e>
            <e type="function" args="2">col</e>
            <e type="operand">RK</e>
            <e type="operand">3</e>
            <e type="function" args="2">col</e>
            <e type="function" args="2">augment</e>
          </input>
        </plot>
      </region>
      <region top="3240" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="18" top="3258" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>