﻿<?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="96">
    <identity>
      <id>cd2bae73-15f4-47b2-94ef-5f60ebd8fee2</id>
      <revision>21</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="18" width="261" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p bold="true" fontName="Arial">Bugs using loops in functions callings.</p>
      </text>
    </region>
    <region left="360" top="18" 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="18" top="63" width="239" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Function with a function as parameter.</p>
      </text>
    </region>
    <region left="72" top="99" width="236" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">u</e>
          <e type="operand">v</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
          <e type="operand">5</e>
          <e type="operand">u</e>
          <e type="operand">v</e>
          <e type="function" args="2">f</e>
          <e type="operator" args="2">*</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="18" top="153" width="113" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Call with factorial</p>
      </text>
    </region>
    <region left="72" top="198" width="156" height="45" color="#000000" 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">2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">a</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">y</e>
          <e type="operator" args="1">!</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="360" top="198" width="189" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">150</e>
        </result>
      </math>
    </region>
    <region left="360" top="234" width="136" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">5</e>
          <e type="operand">2</e>
          <e type="operand">3</e>
          <e type="operator" args="2">*</e>
          <e type="operand">24</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
        </input>
        <result action="numeric">
          <e type="operand">150</e>
        </result>
      </math>
    </region>
    <region left="18" top="279" width="108" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Call with a while</p>
      </text>
    </region>
    <region left="72" top="315" width="176" height="137" color="#000000" 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">2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">φ</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">φ</e>
          <e type="operand">φ</e>
          <e type="operand">k</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</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="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="2">while</e>
          <e type="operand">a</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">φ</e>
          <e type="operator" args="2">+</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="315" width="181" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">35</e>
        </result>
      </math>
    </region>
    <region left="576" top="315" width="51" height="24" color="#ff0000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">What?</p>
      </text>
    </region>
    <region left="72" top="459" width="194" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">y</e>
          <e type="function" args="1">FWhile</e>
          <e type="operand">φ</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">y</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">φ</e>
          <e type="operand">φ</e>
          <e type="operand">k</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</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="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="2">while</e>
          <e type="operand">φ</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="360" top="459" width="115" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">FWhile</e>
        </input>
        <result action="numeric">
          <e type="operand">24</e>
        </result>
      </math>
    </region>
    <region left="513" top="459" width="137" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Factorial using while.</p>
      </text>
    </region>
    <region left="360" top="486" width="59" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="operator" args="1">!</e>
        </input>
        <result action="numeric">
          <e type="operand">24</e>
        </result>
      </math>
    </region>
    <region left="72" top="594" width="195" height="65" color="#000000" 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">2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">φ</e>
          <e type="operand">y</e>
          <e type="function" args="1">FWhile</e>
          <e type="operator" args="2">:</e>
          <e type="operand">a</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">φ</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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="594" width="181" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">35</e>
        </result>
      </math>
    </region>
    <region left="18" top="684" width="93" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Call with a for</p>
      </text>
    </region>
    <region left="72" top="720" width="204" height="100" color="#000000" 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">2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">φ</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">y</e>
          <e type="function" args="2">range</e>
          <e type="operand">φ</e>
          <e type="operand">φ</e>
          <e type="operand">k</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">a</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">φ</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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="720" width="173" height="28" color="#000000" fontSize="10">
      <math error="2" errorLocation="3">
        <input>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="360" top="756" width="173" height="28" color="#000000" fontSize="10">
      <math error="2" errorLocation="3">
        <input>
          <e type="operand">4</e>
          <e type="operand">3</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="360" top="792" width="250" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">lastError</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">y# - not defined.</e>
        </result>
      </math>
    </region>
    <region left="72" top="846" width="206" height="81" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">y</e>
          <e type="function" args="1">FFor</e>
          <e type="operand">φ</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">y</e>
          <e type="function" args="2">range</e>
          <e type="operand">φ</e>
          <e type="operand">φ</e>
          <e type="operand">k</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">φ</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="360" top="846" width="99" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">FFor</e>
        </input>
        <result action="numeric">
          <e type="operand">24</e>
        </result>
      </math>
    </region>
    <region left="513" top="846" width="137" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Factorial using while.</p>
      </text>
    </region>
    <region left="360" top="873" width="59" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="operator" args="1">!</e>
        </input>
        <result action="numeric">
          <e type="operand">24</e>
        </result>
      </math>
    </region>
    <region left="72" top="954" width="179" height="65" color="#000000" 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">2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">φ</e>
          <e type="operand">y</e>
          <e type="function" args="1">FFor</e>
          <e type="operator" args="2">:</e>
          <e type="operand">a</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operand">φ</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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="954" width="173" height="28" color="#000000" fontSize="10">
      <math error="2" errorLocation="3">
        <input>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">x#</e>
          <e type="operand">y#</e>
          <e type="function" args="2">f</e>
          <e type="function" args="3">g</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="360" top="990" width="250" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">lastError</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">y# - not defined.</e>
        </result>
      </math>
    </region>
    <region left="18" top="1044" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>