﻿<?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>58bdc1ed-855d-4405-8a6d-2bc9b3097700</id>
      <revision>16</revision>
    </identity>
    <metadata lang="eng">
      <author>Ryan Freund</author>
    </metadata>
    <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="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="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" />
    </dependencies>
  </settings>
  <regions type="content">
    <region top="27" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>Variables</p>
          </content>
        </title>
      </area>
      <region left="36" top="54" width="485" height="455" color="#000000" fontSize="10">
        <math optimize="2">
          <description active="true" position="Top" lang="spa">
            <content>
              <p>UChar(x) Unicode from x char - Brute force method.<br />(Warning: it is very slow) or char from the code in x.</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">UChar</e>
            <e type="operand">N#</e>
            <e type="operand" style="string">0123456789ABCDEF</e>
            <e type="operator" args="2">:</e>
            <e type="operand">n</e>
            <e type="function" args="1">uchar</e>
            <e type="operand">c</e>
            <e type="operand">n</e>
            <e type="operator" args="2">:</e>
            <e type="operand">h</e>
            <e type="operand" style="string">\</e>
            <e type="operator" args="2">:</e>
            <e type="operand">s</e>
            <e type="operand" style="string"></e>
            <e type="operator" args="2">:</e>
            <e type="operand">k</e>
            <e type="operand">0</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">4</e>
            <e type="function" args="6">mat</e>
            <e type="operand">c</e>
            <e type="operand">0</e>
            <e type="operator" args="2">≠</e>
            <e type="operand">m#</e>
            <e type="operand">c</e>
            <e type="operand">16</e>
            <e type="function" args="2">mod</e>
            <e type="operator" args="2">:</e>
            <e type="operand">h</e>
            <e type="operand">N#</e>
            <e type="operand">m#</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operand">1</e>
            <e type="function" args="3">substr</e>
            <e type="operand">h</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">c</e>
            <e type="operand">c</e>
            <e type="operand">m#</e>
            <e type="operator" args="2">-</e>
            <e type="operand">16</e>
            <e type="operator" args="2">/</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="2">while</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="bracket">(</e>
            <e type="operand">5</e>
            <e type="operand">h</e>
            <e type="function" args="1">strlen</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">≤</e>
            <e type="operand">s</e>
            <e type="operand" style="string">0</e>
            <e type="operand">s</e>
            <e type="function" args="2">concat</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="2">while</e>
            <e type="operand" style="string">\</e>
            <e type="operand">s</e>
            <e type="operand">h</e>
            <e type="function" args="3">concat</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">line</e>
            <e type="operator" args="2">:</e>
            <e type="operand">x</e>
            <e type="function" args="1">IsString</e>
            <e type="operand" style="string">Very slow!</e>
            <e type="operand">c</e>
            <e type="operand">0</e>
            <e type="operand">2</e>
            <e type="operand">16</e>
            <e type="operator" args="2">^</e>
            <e type="function" args="2">range</e>
            <e type="operand">c</e>
            <e type="function" args="1">uchar</e>
            <e type="operand">x</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">break</e>
            <e type="operand">continue</e>
            <e type="function" args="3">if</e>
            <e type="function" args="3">for</e>
            <e type="operand">c</e>
            <e type="operand">2</e>
            <e type="operand">16</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">≡</e>
            <e type="operand" style="string">Can't recognize the character.</e>
            <e type="operand">c</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="operand">x</e>
            <e type="function" args="1">uchar</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 left="36" top="567" width="28" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Dash from Excel<br />(copy and pasted from excel)</p>
            </content>
          </description>
          <input>
            <e type="operand" style="string">–</e>
          </input>
        </math>
      </region>
      <region left="36" top="630" width="51" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Define X using Dash from Excel</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">–</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="306" top="630" width="125" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand">8211</e>
          </result>
        </math>
      </region>
      <region left="468" top="630" width="139" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">8211</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">–</e>
          </result>
        </math>
      </region>
      <region left="36" top="684" width="51" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Keyboard Dash</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">-</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="306" top="684" width="109" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand">45</e>
          </result>
        </math>
      </region>
      <region left="468" top="684" width="123" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">45</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">-</e>
          </result>
        </math>
      </region>
      <region left="36" top="738" width="51" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Number Key-Pad Dash</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">-</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="306" top="738" width="109" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand">45</e>
          </result>
        </math>
      </region>
      <region left="468" top="738" width="123" height="26" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">45</e>
            <e type="function" args="1">UChar</e>
          </input>
          <result action="numeric">
            <e type="operand" style="string">-</e>
          </result>
        </math>
      </region>
      <region top="801" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region top="837" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>First check </p>
          </content>
        </title>
      </area>
      <region left="36" top="873" width="71" height="61" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng" width="230">
            <content>
              <p>Check X (Number key-pad dash) against the 'dash' copied from Excel</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">–</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">y</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">y</e>
            <e type="operand">2</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
          </input>
        </math>
      </region>
      <region left="306" top="873" width="37" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng" width="157">
            <content>
              <p>This appears to find the 'wrong' result</p>
            </content>
          </description>
          <input>
            <e type="operand">y</e>
          </input>
          <result action="numeric">
            <e type="operand">2</e>
          </result>
        </math>
      </region>
      <region top="990" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region top="1035" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>Second check</p>
          </content>
        </title>
      </area>
      <region left="45" top="1062" width="71" height="61" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng" width="174">
            <content>
              <p>Let's try comparing it to the Keyboard 'dash'</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">-</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">y</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">y</e>
            <e type="operand">2</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
          </input>
        </math>
      </region>
      <region left="306" top="1062" width="37" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Correct result</p>
            </content>
          </description>
          <input>
            <e type="operand">y</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
          </result>
        </math>
      </region>
      <region top="1188" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region top="1242" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <content>
            <p>Redefine X and use the first check again</p>
          </content>
        </title>
      </area>
      <region left="45" top="1269" width="51" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Redefine X using Dash from Excel</p>
            </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">–</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="45" top="1323" width="71" height="61" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng" width="230">
            <content>
            <p>Check X (Number key-pad dash) against the 'dash' copied from Excel</p>
          </content>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="operand" style="string">–</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">y</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">y</e>
            <e type="operand">2</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">if</e>
          </input>
        </math>
      </region>
      <region left="306" top="1323" width="37" height="20" color="#000000" fontSize="8">
        <math>
          <description active="true" position="Top" lang="eng">
            <content>
              <p>Correct result</p>
            </content>
          </description>
          <input>
            <e type="operand">y</e>
          </input>
          <result action="numeric">
            <e type="operand">1</e>
          </result>
        </math>
      </region>
      <region top="1440" color="#000000">
        <area terminator="true" />
      </region>
    </region>
  </regions>
</worksheet>