﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7610.506"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="120">
    <identity>
      <id>0b8fa710-431b-408d-a2f0-e89fe3460762</id>
      <revision>5</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="9" orientation="Portrait" width="827" height="1169" />
      <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="0.99.7610.506" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7610.506" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7610.506" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7610.506" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="36" width="199" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p>Generate a random array</p>
      </text>
    </region>
    <region left="432" top="36" width="249" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">0.99.7610.506</e>
        </result>
      </math>
    </region>
    <region left="54" top="72" width="323" height="69" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">m</e>
          <e type="operand">n</e>
          <e type="function" args="2">RND</e>
          <e type="operand">M</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">r</e>
          <e type="operand">1</e>
          <e type="operand">m</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">c</e>
          <e type="operand">1</e>
          <e type="operand">n</e>
          <e type="function" args="2">range</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">M</e>
          <e type="operand">r</e>
          <e type="operand">c</e>
          <e type="function" args="3">el</e>
          <e type="operand">10</e>
          <e type="operand">9</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operand">10</e>
          <e type="operand">9</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">random</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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="162" width="239" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p>and simple two test function</p>
      </text>
    </region>
    <region left="279" top="162" width="135" height="29" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="function" args="1">f</e>
          <e type="operand">M</e>
          <e type="function" args="1">norme</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="459" top="162" width="135" height="49" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="function" args="1">g</e>
          <e type="operand">M</e>
          <e type="function" args="1">norme</e>
          <e type="operand">M</e>
          <e type="function" args="1">norme</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="279" top="243" width="147" height="29" color="#000000" bgColor="#ffff80" fontSize="12">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="function" args="1">r</e>
          <e type="operand">M</e>
          <e type="function" args="1">norme</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="288" width="139" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">100</e>
          <e type="operand">100</e>
          <e type="function" args="2">RND</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="324" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="324" width="117" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">f</e>
        </input>
        <result action="numeric">
          <e type="operand">57.9134</e>
        </result>
      </math>
    </region>
    <region left="315" top="324" width="159" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.15</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="486" top="324" width="259" height="24" color="#000000" fontSize="10">
      <text lang="eng" width="259">
        <p>Two questions:</p>
      </text>
    </region>
    <region left="54" top="360" width="101" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="360" width="117" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">r</e>
        </input>
        <result action="numeric">
          <e type="operand">57.5818</e>
        </result>
      </math>
    </region>
    <region left="315" top="360" width="167" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.126</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="54" top="405" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="405" width="117" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">g</e>
        </input>
        <result action="numeric">
          <e type="operand">57.5976</e>
        </result>
      </math>
    </region>
    <region left="315" top="405" width="167" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.085</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="18" top="450" width="735" height="40" color="#000000" fontSize="10">
      <text lang="eng" width="723">
        <p>Well, are different because A isn't parsed as a true numeric array. Using eval now are the same:</p>
      </text>
    </region>
    <region left="18" top="486" width="187" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">100</e>
          <e type="operand">100</e>
          <e type="function" args="2">RND</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="522" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="522" width="117" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">f</e>
        </input>
        <result action="numeric">
          <e type="operand">57.6967</e>
        </result>
      </math>
    </region>
    <region left="315" top="522" width="167" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.141</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="486" top="522" width="259" height="24" color="#000000" fontSize="10">
      <text lang="eng" width="259">
        <p>Remain the second question.</p>
      </text>
    </region>
    <region left="54" top="558" width="99" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="558" width="113" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">r</e>
        </input>
        <result action="numeric">
          <e type="operand">57.5818</e>
        </result>
      </math>
    </region>
    <region left="315" top="558" width="165" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.126</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="54" top="594" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="594" width="117" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">g</e>
        </input>
        <result action="numeric">
          <e type="operand">57.6967</e>
        </result>
      </math>
    </region>
    <region left="315" top="594" width="167" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.062</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="18" top="639" width="735" height="57" color="#000000" fontSize="10">
      <text lang="eng" width="723">
        <p>BTW, we now are sure that with eval() we can parse A as a numberic entity, and can't do nothing for speed up a procedure involving A. NDTM Amarasekera shows that's false. Here an example</p>
      </text>
    </region>
    <region left="54" top="693" width="245" height="160" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="function" args="1">h</e>
          <e type="operand">m</e>
          <e type="operand">M</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</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">M</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">m</e>
          <e type="operand">M</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</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">m</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="342" top="693" width="261" height="178" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Mo</e>
          <e type="function" args="1">h'</e>
          <e type="operand">M</e>
          <e type="operand">Mo</e>
          <e type="operator" args="2">:</e>
          <e type="operand">m</e>
          <e type="operand">M</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</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">M</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">m</e>
          <e type="operand">M</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</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">m</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="873" width="171" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">75</e>
          <e type="operand">75</e>
          <e type="function" args="2">RND</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="918" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="918" width="109" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">h</e>
        </input>
        <result action="numeric">
          <e type="operand">0.9998</e>
        </result>
      </math>
    </region>
    <region left="324" top="918" width="175" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">10.824</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="54" top="954" width="101" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">to</e>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="180" top="954" width="117" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="function" args="1">h'</e>
        </input>
        <result action="numeric">
          <e type="operand">0.9998</e>
        </result>
      </math>
    </region>
    <region left="324" top="954" width="167" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">time</e>
          <e type="operand">to</e>
          <e type="operator" args="2">-</e>
        </input>
        <result action="numeric">
          <e type="operand">0.263</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="18" top="999" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>