﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7030.1435"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="120">
    <identity>
      <id>a7472ad1-956c-4f0e-96f7-33300f301f27</id>
      <revision>24</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="2" 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.7030.1435" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7030.1435" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7030.1435" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7030.1435" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region id="0" left="423" top="0" width="297" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>multi rename of variable : press F8</p>
      </text>
    </region>
    <region id="1" left="36" top="27" width="282" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Test "if statement" in "for loop"</p>
      </text>
    </region>
    <region id="2" left="45" top="54" width="143" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">F</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="3" left="45" top="81" width="46" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="4" left="45" top="108" width="166" height="262" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="2">range</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">F</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">F</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">F</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">F</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
        </input>
      </math>
    </region>
    <region id="5" left="171" top="162" width="403" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>store value of "y" at each iteration in a vector</p>
      </text>
    </region>
    <region id="6" left="216" top="216" width="225" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>use a function in the loop</p>
      </text>
    </region>
    <region id="7" left="54" top="378" width="71" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
        </input>
        <result action="numeric">
          <e type="operand">2</e>
          <e type="operand">4</e>
          <e type="operand">7</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="8" left="126" top="378" width="79" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">B</e>
        </input>
        <result action="numeric">
          <e type="operand">4</e>
          <e type="operand">12</e>
          <e type="operand">21</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="9" left="216" top="378" width="105" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operator" args="2">+</e>
        </input>
        <result action="numeric">
          <e type="operand">6</e>
          <e type="operand">16</e>
          <e type="operand">28</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="10" left="360" top="378" width="79" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">F</e>
        </input>
        <result action="numeric">
          <e type="operand">6</e>
          <e type="operand">16</e>
          <e type="operand">28</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="11" left="441" top="396" width="28" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>ok</p>
      </text>
    </region>
    <region id="12" left="0" top="459" width="754" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Doesnt work if redefine here the function with "F(x,y):el(A,i)+el(B,i)" to test a new loop </p>
      </text>
    </region>
    <region id="13" left="63" top="486" width="143" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">F</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="14" left="216" top="486" width="363" height="24" border="true" color="#000000" bgColor="#ffff00" fontSize="10">
      <text lang="eng">
        <p>← delete this line to get "ok" result below</p>
      </text>
    </region>
    <region id="15" left="63" top="513" width="46" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="16" left="63" top="540" width="166" height="262" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="2">range</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">F</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">F</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">F</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">A</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">B</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">F</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
        </input>
      </math>
    </region>
    <region id="17" left="189" top="594" width="403" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>store value of "y" at each iteration in a vector</p>
      </text>
    </region>
    <region id="18" left="243" top="657" width="225" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>use a function in the loop</p>
      </text>
    </region>
    <region id="19" left="72" top="810" width="79" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
        </input>
        <result action="numeric">
          <e type="operand">2</e>
          <e type="operand">4</e>
          <e type="operand">7</e>
          <e type="operand">11</e>
          <e type="operand">16</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">mat</e>
        </result>
      </math>
    </region>
    <region id="20" left="144" top="810" width="79" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">B</e>
        </input>
        <result action="numeric">
          <e type="operand">4</e>
          <e type="operand">12</e>
          <e type="operand">21</e>
          <e type="operand">33</e>
          <e type="operand">48</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">mat</e>
        </result>
      </math>
    </region>
    <region id="21" left="234" top="810" width="105" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operator" args="2">+</e>
        </input>
        <result action="numeric">
          <e type="operand">6</e>
          <e type="operand">16</e>
          <e type="operand">28</e>
          <e type="operand">44</e>
          <e type="operand">64</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">mat</e>
        </result>
      </math>
    </region>
    <region id="22" left="378" top="810" width="79" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">F</e>
        </input>
        <result action="numeric">
          <e type="operand">28</e>
          <e type="operand">28</e>
          <e type="operand">28</e>
          <e type="operand">28</e>
          <e type="operand">28</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">mat</e>
        </result>
      </math>
    </region>
    <region id="23" left="459" top="828" width="61" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>not ok</p>
      </text>
    </region>
    <region id="24" left="63" top="1116" width="671" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Problem if define a new "G" function  with same incrementation indice than "F" ??</p>
      </text>
    </region>
    <region id="25" left="63" top="1143" width="273" height="24" color="#000000" bgColor="#ffff00" fontSize="10">
      <text lang="eng">
        <p>OK if replace "i" by "j", why ??</p>
      </text>
    </region>
    <region id="26" left="63" top="1179" width="175" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">G</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operand">D</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="27" left="63" top="1206" width="46" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="28" left="63" top="1233" width="172" height="262" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="2">range</e>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">j</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">D</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">G</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">D</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">G</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">j</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">D</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">G</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">C</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">D</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">G</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
        </input>
      </math>
    </region>
    <region id="29" left="189" top="1287" width="403" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>store value of "y" at each iteration in a vector</p>
      </text>
    </region>
    <region id="30" left="243" top="1341" width="225" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>use a function in the loop</p>
      </text>
    </region>
    <region id="31" left="72" top="1503" width="71" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">C</e>
        </input>
        <result action="numeric">
          <e type="operand">2</e>
          <e type="operand">4</e>
          <e type="operand">7</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="32" left="144" top="1503" width="79" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">D</e>
        </input>
        <result action="numeric">
          <e type="operand">4</e>
          <e type="operand">12</e>
          <e type="operand">21</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="33" left="216" top="1503" width="121" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">C</e>
          <e type="operand">2</e>
          <e type="operand">D</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
        </input>
        <result action="numeric">
          <e type="operand">10</e>
          <e type="operand">28</e>
          <e type="operand">49</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="34" left="333" top="1503" width="79" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">G</e>
        </input>
        <result action="numeric">
          <e type="operand">10</e>
          <e type="operand">28</e>
          <e type="operand">49</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="35" left="468" top="1521" width="28" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>ok</p>
      </text>
    </region>
  </regions>
</worksheet>