﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7109.29964"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>132e6adb-1306-4939-9c64-797d37cd2977</id>
      <revision>26</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="1" orientation="Portrait" width="850" height="1100" />
      <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.7109.29964" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7109.29964" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7109.29964" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7109.29964" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.11.7109.29964" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region id="0" left="18" top="18" width="250" height="24" color="#408080" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>o Extremes auxiliary function</p>
      </text>
    </region>
    <region id="1" left="54" top="54" width="573" height="64" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">Extremes</e>
          <e type="operand">1</e>
          <e type="function" args="1">m</e>
          <e type="function" args="1">E</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">augment</e>
          <e type="function" args="1">eval</e>
          <e type="operand">y</e>
          <e type="function" args="1">m</e>
          <e type="function" args="1">eval</e>
          <e type="operand">2</e>
          <e type="function" args="3">findrows</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x#</e>
          <e type="function" args="1">min</e>
          <e type="function" args="1">E</e>
          <e type="operand">x#</e>
          <e type="function" args="1">max</e>
          <e type="function" args="1">E</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="1">eval</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 id="2" left="18" top="126" width="111" height="24" color="#400000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p bold="true">Find the max</p>
      </text>
    </region>
    <region id="3" left="162" top="126" width="82" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Function </p>
      </text>
    </region>
    <region id="4" left="198" top="153" width="105" height="34" color="#000000" bgColor="#ffffe8" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">1</e>
          <e type="operand">x</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="5" left="522" top="153" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="5.05447028499294" scale_y="5.05447028499294" scale_z="5.05447028499294" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="1" transpose_y="5" transpose_z="0">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
        </input>
      </plot>
    </region>
    <region id="6" left="162" top="198" width="176" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Interval of interest</p>
      </text>
    </region>
    <region id="7" left="198" top="225" width="118" height="27" color="#000000" bgColor="#ffffe8" fontSize="10">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">2</e>
          <e type="operator" args="1">-</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="8" left="18" top="306" width="175" height="24" color="#408080" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>o Brute force method</p>
      </text>
    </region>
    <region id="9" left="54" top="342" width="284" height="97" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">100</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="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">X</e>
          <e type="operand">n</e>
          <e type="function" args="2">el</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="operand">a</e>
          <e type="operator" args="2">-</e>
          <e type="operand">N</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">/</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Y</e>
          <e type="operand">n</e>
          <e type="function" args="2">el</e>
          <e type="operand">X</e>
          <e type="operand">n</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">f</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">xy.m</e>
          <e type="operand">xy.M</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">X</e>
          <e type="operand">Y</e>
          <e type="function" args="2">Extremes</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
        </input>
      </math>
    </region>
    <region id="10" left="522" top="342" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="5.05447028499294" scale_y="5.05447028499294" scale_z="5.05447028499294" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="5" transpose_y="11" transpose_z="0">
        <input>
          <e type="operand">X</e>
          <e type="operand">Y</e>
          <e type="function" args="2">augment</e>
          <e type="operand">xy.M</e>
          <e type="operand" style="string">o</e>
          <e type="function" args="2">augment</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="18" top="450" width="315" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>This method gives two approx results:</p>
      </text>
    </region>
    <region id="12" left="54" top="486" width="191" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">xy.M</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0202</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0.9996</e>
          <e type="operand">0.0202</e>
          <e type="operand">0.9996</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
        </result>
      </math>
    </region>
    <region id="13" left="18" top="540" width="208" height="24" color="#408080" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>o Critical Points method</p>
      </text>
    </region>
    <region id="14" left="54" top="567" width="314" height="108" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">df</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">x</e>
          <e type="function" args="2">diff</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x.c</e>
          <e type="operand">x</e>
          <e type="function" args="1">df</e>
          <e type="operand">x</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="4">solve</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="3">stack</e>
          <e type="operator" args="2">:</e>
          <e type="operand">xy.m</e>
          <e type="operand">xy.M</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">x.c</e>
          <e type="operand">x.c</e>
          <e type="function" args="1">f</e>
          <e type="function" args="1">vectorize</e>
          <e type="function" args="2">Extremes</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
        </input>
      </math>
    </region>
    <region id="15" left="522" top="567" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="lines" scale_x="5.05447028499294" scale_y="5.05447028499294" scale_z="5.05447028499294" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="5" transpose_y="11" transpose_z="0">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">xy.M</e>
          <e type="operand" style="string">o</e>
          <e type="function" args="2">augment</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </plot>
    </region>
    <region id="16" left="18" top="684" width="241" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>This method is more precise:</p>
      </text>
    </region>
    <region id="17" left="54" top="720" width="99" height="31" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">xy.M</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </result>
      </math>
    </region>
    <region id="18" left="18" top="774" width="322" height="24" color="#408080" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>o The Critical Points method by "hand"</p>
      </text>
    </region>
    <region id="19" left="54" top="819" width="94" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Derivative</p>
      </text>
    </region>
    <region id="20" left="270" top="819" width="200" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">df</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">x</e>
          <e type="function" args="2">diff</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="symbolic">
          <e type="operand">2</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="1">-</e>
        </result>
      </math>
    </region>
    <region id="21" left="54" top="873" width="143" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Zeros of the der</p>
      </text>
    </region>
    <region id="22" left="270" top="873" width="208" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">x.z</e>
          <e type="operand">x</e>
          <e type="function" args="1">df</e>
          <e type="operand">x</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="4">solve</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="23" left="54" top="918" width="159" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Singularities of f</p>
      </text>
    </region>
    <region id="24" left="270" top="918" width="135" height="31" color="#000000" bgColor="#ffffe8" fontSize="10">
      <math>
        <input>
          <e type="operand">x.σ</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="25" left="540" top="918" width="61" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>(None)</p>
      </text>
    </region>
    <region id="26" left="54" top="963" width="135" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Critical points</p>
      </text>
    </region>
    <region id="27" left="270" top="963" width="187" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">x.c</e>
          <e type="operand">x.z</e>
          <e type="operand">x.σ</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="4">stack</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="28" left="540" top="963" width="129" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x.c</e>
          <e type="function" args="1">transpose</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operator" args="1">-</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region id="29" left="270" top="999" width="85" height="38" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y.c</e>
          <e type="operand">x.c</e>
          <e type="function" args="1">f</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="30" left="54" top="1044" width="70" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Maximum</p>
      </text>
    </region>
    <region id="31" left="270" top="1044" width="146" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y.M</e>
          <e type="operand">y.c</e>
          <e type="function" args="1">max</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="32" left="540" top="1044" width="62" height="30" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">y.M</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
        </result>
      </math>
    </region>
    <region id="33" left="54" top="1089" width="168" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p>Where the max occur
and the max.</p>
      </text>
    </region>
    <region id="34" left="270" top="1089" width="406" height="36" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">xy.M</e>
          <e type="operand">x.c</e>
          <e type="operand">y.c</e>
          <e type="function" args="2">augment</e>
          <e type="function" args="1">eval</e>
          <e type="operand">y.M</e>
          <e type="operand">2</e>
          <e type="function" args="3">findrows</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
        </result>
      </math>
    </region>
    <region id="35" left="18" top="1152" width="60" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>