﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.98.6398.26177"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings>
    <identity>
      <id>bf78cfd0-7205-4a08-9a32-c44b7b288283</id>
      <revision>9</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>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.98.6398.26177" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.98.6398.26177" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Glyphs" version="1.1.6353.24538" guid="24c691c1-37f2-49e3-9a84-ccb77304d14a" />
      <assembly name="Special Functions" version="1.11.6398.26179" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="MaximaPlugin" version="1.98.6402.3453" guid="44011c1e-5d0d-4533-8e68-e32b5badce41" />
      <assembly name="Text Region" version="1.10.6398.26182" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <region id="0" left="18" top="18" width="146" height="66" color="#ff0000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" args="4">sum</e>
        <e type="function" args="1">Maxima</e>
      </input>
      <result action="symbolic">
        <e type="operand">i</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
      </result>
    </math>
  </region>
  <region id="1" left="234" top="27" width="329" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: sum(%i,i,1,n);
Answer: 
(%o17) %i*n
(%i18) 
Received bytes: 20
SMath get: </e>
      </result>
    </math>
  </region>
  <region id="2" left="567" top="36" width="169" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Here we have a translation problemwith multiple i's </p>
    </text>
  </region>
  <region id="3" left="18" top="90" width="179" height="66" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">j</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" args="4">sum</e>
        <e type="function" args="1">Maxima</e>
      </input>
      <result action="symbolic">
        <e type="operand">n</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operator" args="2">/</e>
      </result>
    </math>
  </region>
  <region id="4" left="18" top="162" width="348" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>In Sum() the loop variable is anonymized.</p>
    </text>
  </region>
  <region id="5" left="18" top="189" width="210" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" args="4">Sum</e>
      </input>
      <result action="symbolic">
        <e type="operand">n</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operator" args="2">/</e>
      </result>
    </math>
  </region>
  <region id="6" left="234" top="189" width="436" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: sum(LXAXUXFi,LXAXUXFi,1,n);
Answer: 
(%o21) (n^2+n)/2
(%i22) 
Received bytes: 25
SMath get: </e>
      </result>
    </math>
  </region>
  <region id="7" left="18" top="297" width="210" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">j</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" args="4">Sum</e>
      </input>
      <result action="symbolic">
        <e type="operand">n</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operator" args="2">/</e>
      </result>
    </math>
  </region>
  <region id="8" left="234" top="297" width="436" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: sum(LXAXUXFj,LXAXUXFj,1,n);
Answer: 
(%o23) (n^2+n)/2
(%i24) 
Received bytes: 25
SMath get: </e>
      </result>
    </math>
  </region>
  <region id="9" left="18" top="405" width="183" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="function" args="2">f</e>
        <e type="function" args="1">Maxima</e>
      </input>
      <result action="symbolic">
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="function" args="2">f</e>
      </result>
    </math>
  </region>
  <region id="10" left="234" top="405" width="279" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: f(%i,i);
Answer: 
(%o25) f(%i,i)
(%i26) 
Received bytes: 23
SMath get: </e>
      </result>
    </math>
  </region>
  <region id="11" left="18" top="531" width="495" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>When assigning Sum() to sum(), the workaround doesn't work.</p>
    </text>
  </region>
  <region id="12" left="27" top="549" width="199" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operand">c</e>
        <e type="operand">d</e>
        <e type="function" args="4">sum</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operand">c</e>
        <e type="operand">d</e>
        <e type="function" args="4">Sum</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 id="13" left="36" top="612" width="104" height="63" color="#ff0000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">j</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">n</e>
        <e type="function" args="4">sum</e>
      </input>
      <result action="symbolic">
        <e type="operand">j</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
      </result>
    </math>
  </region>
  <region id="14" left="270" top="621" width="378" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: sum(j,LXAXUXFb,1,n);
Answer: 
(%o27) j*n
(%i28) 
Received bytes: 19
SMath get: </e>
      </result>
    </math>
  </region>
  <region id="15" left="18" top="720" width="739" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>This would be the correct result if i is treated as imaginary unit. In maxima, assignmentto %i doesn't change the value</p>
    </text>
  </region>
  <region id="16" left="18" top="765" width="250" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand" style="string">$sum(%i,%i,1,n)$</e>
        <e type="function" args="1">Maxima</e>
      </input>
      <result action="symbolic">
        <e type="operand">i</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
      </result>
    </math>
  </region>
  <region id="17" left="18" top="801" width="418" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Here we see an example of the translation problem </p>
    </text>
  </region>
  <region id="18" left="18" top="828" width="375" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="function" args="6">f</e>
        <e type="function" args="1">Maxima</e>
      </input>
      <result action="symbolic">
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="operand">i</e>
        <e type="function" args="6">f</e>
      </result>
    </math>
  </region>
  <region id="19" left="18" top="855" width="362" height="100" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">#</e>
        <e type="function" args="1">MaximaLog</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Request: f(%i,i,%i,i,%i,i);
Answer: 
(%o31) f(%i,i,%i,i,%i,i)
(%i32) 
Received bytes: 33
SMath get: </e>
      </result>
    </math>
  </region>
</regions>