﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.97.5346.24640"?>
<regions>
  <settings>
    <identity>
      <id>16453213-69e6-4cc8-ba7a-249c958a46e6</id>
      <revision>15</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" 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>
    <dependences>
      <assembly name="SMath Studio Desktop" version="0.97.5346.24640" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Text Region" version="1.10.5346.31409" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Math Region" version="0.97.5346.24640" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Special Functions" version="1.11.5346.31403" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="X-Y Plot Region (Chart2DLib)" version="0.1.5151.38078" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
    </dependences>
  </settings>
  <region id="0" left="9" top="27" width="262" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Smath vector size bug </p>
    </text>
  </region>
  <region id="1" left="9" top="54" width="650" height="104" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Conclusively, Smath handles unknown size vector.By precaution, minimise your work otherwise Smath will crash the PC.More than 3 minutes to scale 1000 is not glorious, but not so offending.In this demo, Smath did not issue the "Error exception" message: just crash.In short: Smath bugs in handling the function scale(M,low,high)Proof: the complete Π demo computes in ~ 75 sec from two random vectors [5000]</p>
    </text>
  </region>
  <region id="2" left="9" top="180" width="357" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Leave 'n' minimal, otherwise Smath issues:                   Exception of Type "SystemOutofMemoryException" was thrown</p>
    </text>
  </region>
  <region id="3" left="9" top="252" width="409" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
        <e type="operand">low</e>
        <e type="operand">high</e>
        <e type="function" args="3">scale</e>
        <e type="operand">high</e>
        <e type="operand">low</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="operand">M</e>
        <e type="operand">M</e>
        <e type="function" preserve="true" args="1">min</e>
        <e type="operator" args="2">-</e>
        <e type="operand">M</e>
        <e type="function" preserve="true" args="1">max</e>
        <e type="operand">M</e>
        <e type="function" preserve="true" args="1">min</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">*</e>
        <e type="operand">low</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="4" left="180" top="324" width="60" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">n</e>
        <e type="operand">500</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="5" left="9" top="333" width="136" height="80" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Time</e>
        <e type="operand">100</e>
        <e type="operand">1</e>
        <e type="operand">200</e>
        <e type="operand">3</e>
        <e type="operand">500</e>
        <e type="operand">28</e>
        <e type="operand">1000</e>
        <e type="operand">195</e>
        <e type="operand">4</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="10">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="6" left="180" top="351" width="109" height="48" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">idx</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">i</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
      </input>
    </math>
  </region>
  <region id="7" left="387" top="369" width="96" height="26" color="#000000" bgColor="#80ff00" fontSize="10">
    <math>
      <input>
        <e type="operand">t0</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="1">time</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="8" left="387" top="396" width="170" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">v</e>
        <e type="operand">idx</e>
        <e type="operand">1</e>
        <e type="operator" args="1">-</e>
        <e type="operand">1</e>
        <e type="function" args="3">scale</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="9" left="0" top="414" width="382" height="208" color="#000000" bgColor="#ffffff" fontSize="10">
    <xyplot width="372" height="200" smoothing="false" points="100">
      <propertiessource index="1" sourcetype="PropertyGrid" />
      <grid gridcolor="LightGray" gridpattern="Solid" gridthickness="1" isxgrid="true" isygrid="true" />
      <xaxes xmin="0" xmax="1000" xtick="200" numberformat="General" decimalplaces="3" />
      <yaxes ymin="0" ymax="200" ytick="50" numberformat="General" decimalplaces="3" />
      <y2axes isy2axis="false" y2min="-1" y2max="1" y2tick="0.5" numberformat="General" decimalplaces="3" />
      <title2d title="Title" titlefont="Arial, 12pt" titlefontcolor="Black" />
      <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Courier New, 10pt" tickfontcolor="Black" xlabel="size 'n'" ylabel="time 'sec'" y2label="y2" />
      <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="NorthEast" textcolor="Black" />
      <traces>
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="Blue" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
      </traces>
      <input>
        <e type="operand">Time</e>
      </input>
    </xyplot>
  </region>
  <region id="10" left="387" top="432" width="166" height="26" color="#000000" bgColor="#80ff00" fontSize="10">
    <math decimalPlaces="0">
      <input>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="1">time</e>
        <e type="operand">t0</e>
        <e type="operator" args="2">-</e>
      </input>
      <result action="numeric">
        <e type="operand">27</e>
        <e type="operand" style="unit">sec</e>
        <e type="operator" args="2">*</e>
      </result>
    </math>
  </region>
  <region id="11" left="387" top="504" width="255" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Unhappy Smath session</p>
    </text>
  </region>
  <region id="12" left="387" top="531" width="299" height="88" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>XP Home: n = 20001. Quickly, can't stop calculations2. Smath work sheet turns all white3. Start [Stop] PC  =&gt; KAPUT !4. Stop PC from push button.</p>
    </text>
  </region>
</regions>