﻿<?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>9</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>10</approximateEqualAccuracy>
      <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="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="431" height="73" 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="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="0" top="531" 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="252" top="531" width="245" height="32" 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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="585" width="424" height="174" color="#000000" fontSize="10">
      <plot type="2d" render="lines" scale_x="3.138428376721" scale_y="19.1943424957751" scale_z="60.2400691612424" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-163" transpose_y="-1" transpose_z="0">
        <input>
          <e type="operand">plotsquare</e>
        </input>
      </plot>
    </region>
  </regions>
</worksheet>