﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.97.5346.24640"?>
<regions>
  <settings>
    <identity>
      <id>5e3ef6dc-93ff-4986-b7a0-ac89acc80cae</id>
      <revision>25</revision>
    </identity>
    <calculation>
      <precision>6</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>fraction</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="Plot Region" version="1.9.5346.32570" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
      <assembly name="Picture Region" version="1.10.5346.31387" guid="06b5df04-393e-4be7-9107-305196fcb861" />
    </dependences>
  </settings>
  <region id="0" left="27" top="27" width="285" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Smart random quick plot </p>
    </text>
  </region>
  <region id="1" left="27" top="63" width="512" height="104" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>For stem plot, Smath quick plot needs some carriage return to rest position '0'. This is what 'replicate(P,v)' does inthe X direction. The Y direction is coded accordingly 'Yrnd'.The "plottable"  V is truncated of the two first positions.The system adjusts itself on 'n = length of random'.Anywhere you click on active code: press F9 to regenerate.  </p>
    </text>
  </region>
  <region id="2" left="18" top="171" width="141" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">n</e>
        <e type="function" args="1">rnd</e>
        <e type="operand">n</e>
        <e type="function" preserve="true" args="1">random</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="3" left="207" top="171" width="96" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">datum</e>
        <e type="operand">0</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="4" left="396" top="189" width="60" height="24" color="#000000" bgColor="#80ffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">n</e>
        <e type="operand">100</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="5" left="459" top="189" width="166" height="24" color="#000000" bgColor="#80ffff" fontSize="10">
    <text lang="eng">
      <p>&lt;= length of random</p>
    </text>
  </region>
  <region id="6" left="18" top="207" width="292" height="137" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <description active="true" position="Top" lang="eng">
        <p>mixed : rnd  &amp;  Random</p>
      </description>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">myrnd</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">rn</e>
        <e type="operand">j</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">j</e>
        <e type="function" args="1">rnd</e>
        <e type="operand">j</e>
        <e type="operator" args="2">/</e>
        <e type="operand">0.5</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">rn</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="1">Random</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">0.5</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">idx</e>
        <e type="operand">j</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">j</e>
        <e type="operator" args="2">:</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="5">line</e>
        <e type="function" preserve="true" args="3">for</e>
        <e type="operand">idx</e>
        <e type="operand">rn</e>
        <e type="function" preserve="true" args="2">augment</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="7" left="396" top="234" width="174" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">rnd</e>
        <e type="operand">n</e>
        <e type="function" args="1">myrnd</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="2">col</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="8" left="396" top="288" width="188" height="80" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">iii</e>
        <e type="operand">1</e>
        <e type="operand">rnd</e>
        <e type="function" preserve="true" args="1">rows</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">P</e>
        <e type="operand">iii</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">3</e>
        <e type="operator" args="2">:</e>
        <e type="operand">P</e>
        <e type="operand">rnd</e>
        <e type="function" preserve="true" args="1">rows</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">2</e>
        <e type="operator" args="2">:</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">line</e>
        <e type="function" preserve="true" args="3">for</e>
      </input>
    </math>
  </region>
  <region id="9" left="18" top="378" width="314" height="196" border="true" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <description active="true" position="Top" lang="eng">
        <p>Core component of the stem style</p>
      </description>
      <input>
        <e type="operand">P</e>
        <e type="operand">v</e>
        <e type="function" args="2">replicate</e>
        <e type="operand">k</e>
        <e type="operand">1</e>
        <e type="operator" args="2">:</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">v</e>
        <e type="function" preserve="true" args="1">length</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">P</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">1</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">continue</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">P</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">T</e>
        <e type="operand">k</e>
        <e type="operand">j</e>
        <e type="operator" args="2">+</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">v</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
        <e type="operand">k</e>
        <e type="operand">k</e>
        <e type="operand">P</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</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" preserve="true" args="4">line</e>
        <e type="function" preserve="true" args="3">if</e>
        <e type="function" preserve="true" args="3">for</e>
        <e type="operand">T</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="5">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="10" left="396" top="378" width="179" height="50" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">ii</e>
        <e type="operand">1</e>
        <e type="operand">rnd</e>
        <e type="function" preserve="true" args="1">rows</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">v</e>
        <e type="operand">ii</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">ii</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
      </input>
    </math>
  </region>
  <region id="11" left="396" top="441" width="153" height="26" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">u</e>
        <e type="operand">P</e>
        <e type="operand">v</e>
        <e type="function" args="2">replicate</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="12" left="396" top="486" width="170" height="50" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">v</e>
        <e type="function" preserve="true" args="1">length</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">Yrnd</e>
        <e type="operand">3</e>
        <e type="operand">i</e>
        <e type="operator" args="2">*</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">rnd</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
      </input>
    </math>
  </region>
  <region id="13" left="396" top="540" width="162" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">V</e>
        <e type="operand">u</e>
        <e type="operand">Yrnd</e>
        <e type="function" preserve="true" args="2">augment</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="14" left="396" top="567" width="270" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="none" decimalPlaces="4">
      <input>
        <e type="operand">V</e>
        <e type="operand">V</e>
        <e type="operand">3</e>
        <e type="operand">V</e>
        <e type="function" preserve="true" args="1">rows</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="5">submatrix</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="15" left="18" top="630" width="363" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="7.18045512066376" scale_y="0.195800417984658" scale_z="1.40593611394604" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-133" transpose_y="0" transpose_z="0">
      <description active="true" position="Top" lang="eng">
        <p>Random stem style ... extensible at will.</p>
      </description>
      <input>
        <e type="operand">V</e>
        <e type="operand">x</e>
        <e type="function" args="1">datum</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="16" left="396" top="657" width="270" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>The overall coding is left open "edu style" to see what's going on in modular steps. </p>
    </text>
  </region>
  <region id="17" left="486" top="711" width="80" height="80" color="#000000" bgColor="#ffffff">
    <picture>
      <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAA+lJREFUeF7tnM1x8yAQhpUCvz5SREpIBV8DqcLn1OBjjrn5kpncFCMJGdDC/hKIjWc8E1k/LA/vvguS46f56zJP45Un4ACNd57BNOCUBTIAIRl0AHRNRudJVd/z9VW7Den104wagBIxDEBIdgxAA5DOP00UNE/OZde3xAzv2qRDODukGy9o9/pZIO3HA4RNC0KA12MHoBIwDwuD2mi/zoO2zmk9aLewRhBKvikHZDjyS4oZXk9SKHLn6AAZjXjkQZ2BkgEy7sTBpI2vr1GUHJCRelzwYBXrZAHbLyA3AB1A6h9QY0h8QBX8oThR/JOADP0n60FhGw0h9a+gxl7EB1QhYDTFKIvfSpPN/gBBMDiDkjtfaAtdAApuJ+VLu7Q4KJXVDlAQOPl2h8ashaDkgKTBAoH+CiCfYkwlygBxPCEt1wBYFiDpwBDigNZsvwMIGTUyIOnAQAZNVJIOEGU0CYE0AeRhI32QA6KMJgEOaSZdc1ZdHRDUAADG3zOU3Jt5fZ3mz8/bZOB8nubnZ93zrj0OLP2TLzPwn82nDRBVQwX18rKCcVDcOf/n87LtgFGvgR5XUJEuxcLSieR0qKDgDvSmjH978f/+nmb3fntbATgw7ngHaukoxfcYs2bsgYMNIILhQYBOpzVV/L739xWE275cViAOltuOUoIBoPjE4jCFPz4ZRgG5CkN5+bbSY32AECBo32raNyjx30u9i/Z7k6fEeDgGAHQ4Ru1BoewL/iMFBClIY/jRI28LBZEMLvSFDCQpIO9BrpJ5D7ICtKgP+eIFmmJFQDnFIGU+7WBpO61ip/l0SDF0EEueVbXMYxUlaFyqINf5dB708XGrcio4hKooVxB1vrMdF1YmVaewQeFUOEIfdICowSylISnX1HPT46wAEeAsHiWuYoxAo9IMnLfgowAjdgq9FuM6MkDEBqIS4Sd74Uxmg8ICRAGpMOUUrhyQVaDbzAwddYKhkiouVa1+8EQpxmwE7Xyoqty1iao9tAUoFo0nGPx2CgqDCKGksPw+6qDkzhcqvj9AUNWCOl36TAgDUhYfkFTqhaBRk6aqxxDMvpBme1CFYO8PkDGkIiDjtjgGLZ8oGgedBVQhne8PUAVf4UDim7R2wgZ0GFSQsUo5UKKbamyTJtx/5gZzANRBasmrmFeA4QhHgDqCIzdpYxUtgDoDo1dQAAm7r4umXKdwdAryq13CkwHSKrtxtcrFKKti4UJTAihJKXQm3RBeHUCUxWVuNd8Qhs1iFZrHjH/qNfwmBXWi2ImS1CmGVihCR+/agwYgggK0kIaCEMh/GlBqUo++PX6BivsLVI+uGLTMD0CX6AsMP06T0z731+rUAAAAAElFTkSuQmCC</raw>
    </picture>
  </region>
  <region id="18" left="441" top="792" width="176" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p bold="true">jmGiraud: 2015/09/12</p>
    </text>
  </region>
</regions>