﻿<?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>8e040232-6b33-43a2-9c60-dd0cedccb464</id>
      <revision>32</revision>
    </identity>
    <metadata lang="eng">
      <author>overlord</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>7</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="1" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="0" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="49" bottom="49" />
      <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="AreaRegion" version="1.11.8348.30405" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="RadioButtonList Region" version="1.0.8249.15837" guid="7336e61c-492b-4735-9bc9-a01d8f57fef1" />
      <assembly name="PlotRegion" version="1.11.8348.30405" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region top="9" color="#000000">
      <area collapsed="true">
        <title lang="eng">
          <content>
            <p>Text in a box Function</p>
          </content>
        </title>
      </area>
      <region left="18" top="18" width="200" height="46" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">char</e>
            <e type="operand">\250C\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2510\\000A\\2502\\0020\text\0020\in\0020\a\0020\box\0020\\2502\\000A\\2514\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2518\</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="18" top="72" width="776" height="616" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">M</e>
            <e type="operand">usage</e>
            <e type="function" args="2">textinabox</e>
            <e type="operand">type</e>
            <e type="operand">M</e>
            <e type="function" args="1">GetType</e>
            <e type="operator" args="2">:</e>
            <e type="operand">M#</e>
            <e type="operand">M</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">mat</e>
            <e type="operand">type</e>
            <e type="operand" style="string">string</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">M</e>
            <e type="function" args="1">num2str</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">mat</e>
            <e type="operand">type</e>
            <e type="operand" style="string">number</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">M</e>
            <e type="operand">type</e>
            <e type="operand" style="string">matrix</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">break</e>
            <e type="function" args="7">cases</e>
            <e type="operator" args="2">:</e>
            <e type="operand">char</e>
            <e type="operand">len</e>
            <e type="function" args="2">strpt</e>
            <e type="operand">rslt</e>
            <e type="operand" style="string"></e>
            <e type="operator" args="2">:</e>
            <e type="operand">len</e>
            <e type="operand">0</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">j</e>
            <e type="operand">1</e>
            <e type="operand">len</e>
            <e type="function" args="2">range</e>
            <e type="operand">rslt</e>
            <e type="operand">rslt</e>
            <e type="operand">char</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="function" args="2">if</e>
            <e type="operand">rslt</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="operator" args="2">:</e>
            <e type="operand">long</e>
            <e type="operand">M#</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operator" args="2">:</e>
            <e type="operand">M#</e>
            <e type="function" args="1">length</e>
            <e type="operand">1</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">i</e>
            <e type="operand">2</e>
            <e type="operand">M#</e>
            <e type="function" args="1">length</e>
            <e type="function" args="2">range</e>
            <e type="operand">M#</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operand">long</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">long</e>
            <e type="operand">M#</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="2">if</e>
            <e type="function" args="3">for</e>
            <e type="function" args="2">if</e>
            <e type="operand">usage</e>
            <e type="operand">1</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">bcorner</e>
            <e type="operand" style="string">└</e>
            <e type="operator" args="2">:</e>
            <e type="operand">side</e>
            <e type="operand" style="string">│</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">usage</e>
            <e type="operand">2</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">bcorner</e>
            <e type="operand" style="string"> └</e>
            <e type="operator" args="2">:</e>
            <e type="operand">side</e>
            <e type="operand" style="string"> │</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="4">if</e>
            <e type="operand">result</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string">┌</e>
            <e type="operand" style="string">─</e>
            <e type="operand">long</e>
            <e type="operand">2</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">strpt</e>
            <e type="operand" style="string">┐</e>
            <e type="function" args="3">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">result</e>
            <e type="operand">M#</e>
            <e type="function" args="1">length</e>
            <e type="operand">2</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">el</e>
            <e type="operand">bcorner</e>
            <e type="operand" style="string">─</e>
            <e type="operand">long</e>
            <e type="operand">2</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">strpt</e>
            <e type="operand" style="string">┘</e>
            <e type="function" args="3">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operand">M#</e>
            <e type="function" args="1">length</e>
            <e type="function" args="2">range</e>
            <e type="operand">dff1</e>
            <e type="operand">long</e>
            <e type="operand">M#</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="operand">0.5</e>
            <e type="operator" args="2">*</e>
            <e type="function" args="1">trunc</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="operand">dff2</e>
            <e type="operand">long</e>
            <e type="operand">2</e>
            <e type="operator" args="2">+</e>
            <e type="operand">M#</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">strlen</e>
            <e type="operator" args="2">-</e>
            <e type="operand">dff1</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="function" args="1">trunc</e>
            <e type="operator" args="2">:</e>
            <e type="operand">result</e>
            <e type="operand">i</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">el</e>
            <e type="operand">side</e>
            <e type="operand" style="string"> </e>
            <e type="operand">dff1</e>
            <e type="function" args="2">strpt</e>
            <e type="operand">M#</e>
            <e type="operand">i</e>
            <e type="function" args="2">el</e>
            <e type="operand" style="string"> </e>
            <e type="operand">dff2</e>
            <e type="function" args="2">strpt</e>
            <e type="operand" style="string">│</e>
            <e type="function" args="5">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="function" args="3">for</e>
            <e type="operand" style="string">
</e>
            <e type="operand">result</e>
            <e type="function" args="2">strjoin</e>
            <e type="operand">10</e>
            <e type="operand">1</e>
            <e type="function" args="12">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="45" top="702" width="205" height="63" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text1</e>
            <e type="operand" style="string">This is</e>
            <e type="operand" style="string">a demo matrix</e>
            <e type="operand" style="string">for test.</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="252" top="702" width="253" height="117" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text2</e>
            <e type="operand" style="string">This is</e>
            <e type="operand" style="string">another demo matrix</e>
            <e type="operand" style="string">for test.</e>
            <e type="operand" style="string">It may seem</e>
            <e type="operand" style="string">useless and</e>
            <e type="operand" style="string">may be it is.</e>
            <e type="operand">6</e>
            <e type="operand">1</e>
            <e type="function" args="8">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="522" top="702" width="109" height="27" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text3</e>
            <e type="operand" style="string">1</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="36" top="828" width="329" height="68" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text1</e>
            <e type="operand">1</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="symbolic">
            <e type="operand" style="string">┌───────────────┐
│    This is    │
│ a demo matrix │
│   for test.   │
└───────────────┘</e>
          </result>
        </math>
      </region>
      <region left="378" top="828" width="337" height="68" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text1</e>
            <e type="operand">2</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="symbolic">
            <e type="operand" style="string">┌───────────────┐
 │    This is    │
 │ a demo matrix │
 │   for test.   │
 └───────────────┘</e>
          </result>
        </math>
      </region>
      <region left="36" top="891" width="377" height="101" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text2</e>
            <e type="operand">1</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">┌─────────────────────┐
│       This is       │
│ another demo matrix │
│      for test.      │
│     It may seem     │
│     useless and     │
│    may be it is.    │
└─────────────────────┘</e>
          </result>
        </math>
      </region>
      <region left="423" top="891" width="385" height="101" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text2</e>
            <e type="operand">2</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">┌─────────────────────┐
 │       This is       │
 │ another demo matrix │
 │      for test.      │
 │     It may seem     │
 │     useless and     │
 │    may be it is.    │
 └─────────────────────┘</e>
          </result>
        </math>
      </region>
      <region left="36" top="990" width="233" height="46" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text3</e>
            <e type="operand">1</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">┌───┐
│ 1 │
└───┘</e>
          </result>
        </math>
      </region>
      <region left="378" top="990" width="241" height="46" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">text3</e>
            <e type="operand">2</e>
            <e type="function" args="2">textinabox</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">┌───┐
 │ 1 │
 └───┘</e>
          </result>
        </math>
      </region>
      <region left="36" top="1044" width="298" height="49" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">options</e>
            <e type="operand" style="string">Option 1</e>
            <e type="operand">1</e>
            <e type="function" args="2">textinabox</e>
            <e type="operand" style="string">Option 2</e>
            <e type="operand">1</e>
            <e type="function" args="2">textinabox</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region top="1098" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="45" top="1125" width="203" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text1</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">This is</e>
          <e type="operand" style="string">a demo matrix</e>
          <e type="operand" style="string">for test.</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="45" top="1197" width="251" height="117" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text2</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">This is</e>
          <e type="operand" style="string">another demo matrix</e>
          <e type="operand" style="string">for test.</e>
          <e type="operand" style="string">It may seem</e>
          <e type="operand" style="string">useless and</e>
          <e type="operand" style="string">may be it is.</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="45" top="1323" width="107" height="27" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text3</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">1</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="45" top="1359" width="287" height="46" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">SMath</e>
          <e type="operand">2</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌───────┐
 │ SMath │
 └───────┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1404" width="239" height="46" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">423</e>
          <e type="operand">2</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌─────┐
 │ 423 │
 └─────┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1449" width="329" height="68" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text1</e>
          <e type="operand">1</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌───────────────┐
│    This is    │
│ a demo matrix │
│   for test.   │
└───────────────┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1521" width="337" height="68" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text1</e>
          <e type="operand">2</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌───────────────┐
 │    This is    │
 │ a demo matrix │
 │   for test.   │
 └───────────────┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1584" width="241" height="46" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">text3</e>
          <e type="operand">2</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌───┐
 │ 1 │
 └───┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1638" width="164" height="94" border="true" color="#000000" fontSize="10" showInputData="false">
      <radiobuttonlist input="options" inputColumn="1" selected="1" output="Default" outputColumn="2" font="Courier New, 10pt" layout="Vertical" split="0" optimization="Numeric" decimalPlaces="15" exponentialThreshold="15" significantFigures="0" fractions="Decimal" trailingZeros="false" overrideDP="true">
        <ul>
          <li>"\250C\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2510\\000A\\2502\\0020\Option\0020\1\0020\\2502\\000A\\2514\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2518\"</li>
          <li>"\250C\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2510\\000A\\2502\\0020\Option\0020\2\0020\\2502\\000A\\2514\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2500\\2518\"</li>
        </ul>
        <input>
          <e type="operand">res</e>
        </input>
      </radiobuttonlist>
    </region>
    <region left="45" top="1737" width="210" height="101" color="#000000" fontSize="10" showInputData="false">
      <math>
        <description active="false" position="Top" lang="eng">
          <content>
            <p>textinabox(text2;2)</p>
          </content>
        </description>
        <input>
          <e type="operand">text2</e>
          <e type="operand">2</e>
          <e type="function" args="2">textinabox</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">┌─────────────────────┐
 │       This is       │
 │ another demo matrix │
 │      for test.      │
 │     It may seem     │
 │     useless and     │
 │    may be it is.    │
 └─────────────────────┘</e>
        </result>
      </math>
    </region>
    <region left="45" top="1845" width="338" height="225" color="#000000" fontSize="10">
      <plot type="2d" render="lines" scale_x="0.517645305744219" scale_y="0.517645305744219" scale_z="0.517645305744219" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-65" transpose_y="-69" transpose_z="0">
        <input>
          <e type="operand">1</e>
          <e type="operand">27</e>
          <e type="operand">text3</e>
          <e type="operand">1</e>
          <e type="function" args="2">textinabox</e>
          <e type="operand">1</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>
        </input>
      </plot>
    </region>
  </regions>
</worksheet>