﻿<?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="96">
    <identity>
      <id>4cbf9bd4-d690-4613-adbf-e4e46d4f5579</id>
      <revision>48</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="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.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" />
      <assembly name="PlotRegion" version="1.11.7030.1435" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region id="0" left="0" top="0" width="461" height="41" color="#000000" bgColor="#ffff80" fontSize="20">
      <text lang="eng">
        <p>IS sum() has A WYSIWYG bug?</p>
      </text>
    </region>
    <region id="1" left="0" top="36" width="112" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true" exponentialThreshold="3">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">x</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="2" left="117" top="45" width="162" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">a.0</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">π</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operator" args="1">-</e>
          <e type="operand">π</e>
          <e type="function" args="4">int</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="3" left="288" top="45" width="240" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">1</e>
          <e type="operand">π</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operator" args="1">-</e>
          <e type="operand">π</e>
          <e type="function" args="4">int</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="4" left="540" top="45" width="240" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">1</e>
          <e type="operand">π</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operator" args="1">-</e>
          <e type="operand">π</e>
          <e type="function" args="4">int</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="5" left="0" top="54" width="46" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">N</e>
          <e type="operand">6</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="6" left="0" top="108" width="403" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <p>Perfectly formated formula, but wait...</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="7" left="9" top="180" width="318" height="127" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="0.467363254968115" scale_y="2.59850105298731" scale_z="2.59850105298731" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-98" transpose_y="-6" transpose_z="0">
        <description active="true" position="Top" lang="eng">
          <p>The result is not what was expected...</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">sin</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">S</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
    <region id="8" left="351" top="216" width="423" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S1</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">+</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="9" left="0" top="279" width="280" height="41" color="#ff0000" bgColor="#ffff80" fontSize="20">
      <text lang="eng">
        <p>WHY IS S(0)= 6 ?</p>
      </text>
    </region>
    <region id="10" left="351" top="288" width="377" height="127" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="2.22403378144105" scale_y="2.37377552950832" scale_z="10.9074344337665" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-154" transpose_y="-4" transpose_z="0">
        <description active="true" position="Top" lang="eng">
          <p>Here is what was expected.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">sin</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">S1</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
    <region id="11" left="342" top="387" width="408" height="31" color="#008000" bgColor="#ffff80" fontSize="14">
      <text lang="eng">
        <p>I WAS EXPECTING S1(0)= 1, SO IT IS</p>
      </text>
    </region>
    <region id="12" left="0" top="504" width="423" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <p>This is a WYSIWYG formula</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S2</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="13" left="9" top="576" width="377" height="127" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="0.467363254968115" scale_y="2.59850105298731" scale_z="2.59850105298731" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-154" transpose_y="-3" transpose_z="0">
        <description active="true" position="Top" lang="eng">
          <p>Here too, is what was expected.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">sin</e>
          <e type="operand">x</e>
          <e type="operand">π</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">S2</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
    <region id="14" left="0" top="675" width="455" height="31" color="#008000" bgColor="#ffff80" fontSize="14">
      <text lang="eng">
        <p>HERE I AM EXPECTING S2(0)= 6, SO IT IS</p>
      </text>
    </region>
    <region id="15" left="0" top="783" width="403" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <p>FLAWED WYSIWYG ???</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="16" left="0" top="855" width="780" height="74" color="#008000" bgColor="#ffff80" fontSize="20">
      <text lang="eng">
        <p>THE FIRST SUM CONTAINS EVERYTHING 
TO THE RIGHT OF IT, IT IS EQUIVALENT TO S2(x): </p>
      </text>
    </region>
    <region id="17" left="0" top="936" width="423" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <p>This is a WYSIWYG formula</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S2</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="18" left="0" top="1134" width="403" height="70" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng">
          <p>FLAWED WYSIWYG ???</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">S</e>
          <e type="operand">a.0</e>
          <e type="operand">n</e>
          <e type="function" args="1">a</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">cos</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="function" args="1">b</e>
          <e type="operand">n</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">*</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>