﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="1.0.8348.30405"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>4f34237d-70be-4d30-950c-c512696a4f05</id>
      <revision>7</revision>
    </identity>
    <metadata lang="eng">
      <author>Joop</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <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="1.0.8348.30405" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.8348.30405" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.8348.30405" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.8348.30405" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.11.8348.30405" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="0" top="18" width="363" height="26" color="#800000" fontSize="12">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-size: 12px; font-weight: bold; color: #800000;">Square wave shape as function of harmonics;</p>
        </content>
      </text>
    </region>
    <region left="0" top="54" width="208" height="32" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">t.p</e>
          <e type="function" args="1">check</e>
          <e type="operand">2</e>
          <e type="operand">π</e>
          <e type="operator" args="2">*</e>
          <e type="operand">1</e>
          <e type="operand">t.p</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">sin</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="90" width="133" height="31" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">x.c</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">0.05</e>
          <e type="function" args="3">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="117" width="150" height="38" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">y..check</e>
          <e type="operand">x.c</e>
          <e type="function" args="1">check</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="162" top="117" width="242" height="32" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Plot.check</e>
          <e type="operand">x.c</e>
          <e type="operand">y..check</e>
          <e type="function" args="2">augment</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="414" top="117" width="124" height="23" color="#800000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-size: 10px; color: #800000;">This plots just fine.</p>
        </content>
      </text>
    </region>
    <region left="0" top="162" width="333" height="199" color="#000000" fontSize="10">
      <plot type="2d" render="lines" scale_x="8.09538993118853" scale_y="29.9743921511075" scale_z="56.0911090374533" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-160" transpose_y="3" transpose_z="0">
        <input>
          <e type="operand">Plot.check</e>
        </input>
      </plot>
    </region>
    <region left="0" top="414" width="86" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">maxsum</e>
          <e type="operand">3</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="135" top="414" width="229" height="23" color="#800000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-size: 10px; color: #800000;">maxsum is the number of harmonics</p>
        </content>
      </text>
    </region>
    <region left="0" top="450" width="424" height="69" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">t.p</e>
          <e type="operand">sum</e>
          <e type="function" args="2">Square</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</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">π</e>
          <e type="operator" args="2">*</e>
          <e type="operand">t.p</e>
          <e type="operator" args="2">*</e>
          <e type="operand">2</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</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">0</e>
          <e type="operand">maxsum</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="531" width="237" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">x.c</e>
          <e type="operand">10</e>
          <e type="function" args="2">el</e>
          <e type="operand">maxsum</e>
          <e type="function" args="2">Square</e>
        </input>
        <result action="numeric">
          <e type="operand">0.8943</e>
        </result>
      </math>
    </region>
    <region left="252" top="531" width="351" height="23" color="#800000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="color: #800000;">"This works, every value for  tp gives one unique  answer</p>
        </content>
      </text>
    </region>
    <region left="0" top="630" width="207" height="38" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Y.axis</e>
          <e type="operand">x.c</e>
          <e type="operand">maxsum</e>
          <e type="function" args="2">Square</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="234" top="630" width="69" height="30" color="#000000" fontSize="10">
      <math error="43" errorLocation="0">
        <input>
          <e type="operand">Y.axis</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="315" top="630" width="302" height="23" color="#800000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="color: #800000;">Trying to vectorize for  ploting, does not work, ??</p>
        </content>
      </text>
    </region>
    <region left="0" top="684" width="245" height="38" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">plotsquare</e>
          <e type="operand">x.c</e>
          <e type="operand">Y.axis</e>
          <e type="function" args="2">augment</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="747" width="424" height="174" color="#000000" fontSize="10">
      <plot error="43" type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-114" transpose_y="3" transpose_z="0">
        <input>
          <e type="operand">plotsquare</e>
        </input>
      </plot>
    </region>
    <region left="288" top="999" width="116" height="24" color="#000000" fontSize="10">
      <math error="43" errorLocation="0">
        <input>
          <e type="operand">plotsquare</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>