﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7251.32800"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>a547043f-0fa9-4b85-814a-4d3ed3b6c2c6</id>
      <revision>5</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="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="0.99.7251.32800" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="SpecialFunctions" version="1.12.7251.32800" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Area Region" version="0.99.7251.32800" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="PlotRegion" version="1.11.7251.32800" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region top="9" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <p fontName="Arial">PolyFit</p>
        </title>
      </area>
      <region left="18" top="36" width="659" height="117" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="operand">y</e>
            <e type="operand">n</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">m</e>
            <e type="operand">x</e>
            <e type="function" args="1">length</e>
            <e type="operator" args="2">:</e>
            <e type="operand">r</e>
            <e type="operand">1</e>
            <e type="operand">m</e>
            <e type="function" args="2">range</e>
            <e type="operator" args="2">:</e>
            <e type="operand">c</e>
            <e type="operand">1</e>
            <e type="operand">n</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="bracket">(</e>
            <e type="function" args="2">range</e>
            <e type="operator" args="2">:</e>
            <e type="operand">A</e>
            <e type="operand">m</e>
            <e type="operand">n</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="2">matrix</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">4</e>
            <e type="function" args="6">mat</e>
            <e type="operand">A</e>
            <e type="operand">r</e>
            <e type="operand">c</e>
            <e type="function" args="3">el</e>
            <e type="operand">x</e>
            <e type="operand">r</e>
            <e type="function" args="2">el</e>
            <e type="operand">x</e>
            <e type="operand">r</e>
            <e type="function" args="2">el</e>
            <e type="operand">0</e>
            <e type="operator" args="2">≡</e>
            <e type="bracket">(</e>
            <e type="operand">c</e>
            <e type="operand">1</e>
            <e type="operator" args="2">≡</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">&amp;</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">+</e>
            <e type="bracket">(</e>
            <e type="operand">c</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">:</e>
            <e type="operand">A</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">A</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operand">A</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">y</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">*</e>
            <e type="function" args="1">eval</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="18" top="162" width="339" height="77" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">p</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">p</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">x</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">^</e>
            <e type="function" args="1">vectorize</e>
            <e type="operator" args="2">*</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">p</e>
            <e type="function" args="1">length</e>
            <e type="function" args="4">sum</e>
            <e type="function" args="1">eval</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="18" top="261" width="123" height="118" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">Data</e>
            <e type="operand">1</e>
            <e type="operand">0.9</e>
            <e type="operand">2</e>
            <e type="operand">2.4</e>
            <e type="operand">3</e>
            <e type="operand">7</e>
            <e type="operand">4</e>
            <e type="operand">17.4</e>
            <e type="operand">5</e>
            <e type="operand">30.5</e>
            <e type="operand">6</e>
            <e type="operand">48.3</e>
            <e type="operand">6</e>
            <e type="operand">2</e>
            <e type="function" args="14">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="225" top="261" width="46" height="24" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">n</e>
            <e type="operand">2</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="333" top="270" width="274" height="29" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">X</e>
            <e type="operand">Data</e>
            <e type="operand">1</e>
            <e type="function" args="2">col</e>
            <e type="operator" args="2">:</e>
            <e type="operand">Y</e>
            <e type="operand">Data</e>
            <e type="operand">2</e>
            <e type="function" args="2">col</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="function" args="4">mat</e>
          </input>
        </math>
      </region>
      <region left="18" top="387" width="258" height="63" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">C</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">n</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operator" args="2">:</e>
          </input>
          <result action="numeric">
            <e type="operand">3.83</e>
            <e type="operand">4.9604</e>
            <e type="operator" args="1">-</e>
            <e type="operand">2.0625</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">mat</e>
          </result>
        </math>
      </region>
      <region left="387" top="387" width="350" height="225" color="#000000" fontSize="10">
        <plot type="2d" render="lines" scale_x="0.409095011588119" scale_y="5.81616864773765" scale_z="1.16719581194833" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-175" transpose_y="-99" transpose_z="0">
          <input>
            <e type="operand">C</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">C</e>
            <e type="operand">X</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand" style="string">o</e>
            <e type="function" args="3">augment</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand" style="string">x</e>
            <e type="function" args="3">augment</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">sys</e>
          </input>
        </plot>
      </region>
      <region left="18" top="459" width="202" height="118" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">C</e>
            <e type="operand">X</e>
            <e type="function" args="2">PolyVal</e>
          </input>
          <result action="numeric">
            <e type="operand">0.9321</e>
            <e type="operand">2.1593</e>
            <e type="operand">7.5114</e>
            <e type="operand">16.9886</e>
            <e type="operand">30.5907</e>
            <e type="operand">48.3179</e>
            <e type="operand">6</e>
            <e type="operand">1</e>
            <e type="function" args="8">mat</e>
          </result>
        </math>
      </region>
      <region left="18" top="594" width="260" height="28" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">Y</e>
            <e type="operand">C</e>
            <e type="operand">X</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="1">normi</e>
          </input>
          <result action="numeric">
            <e type="operand">0.5114</e>
          </result>
        </math>
      </region>
      <region left="18" top="693" width="208" height="27" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">x</e>
            <e type="operand">1</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="1">sqrt</e>
            <e type="operand">x</e>
            <e type="operand">0.3</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="1">cos</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="252" top="693" width="46" height="24" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">n</e>
            <e type="operand">6</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="414" top="693" width="102" height="26" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">X</e>
            <e type="operand">0</e>
            <e type="operand">7</e>
            <e type="operand">1</e>
            <e type="function" args="3">range</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="612" top="693" width="73" height="32" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">Y</e>
            <e type="operand">X</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 left="252" top="729" width="369" height="30" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">Y</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">n</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">X</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operator" args="2">-</e>
            <e type="function" args="1">normi</e>
          </input>
          <result action="numeric">
            <e type="operand">0.009</e>
          </result>
        </math>
      </region>
      <region left="18" top="774" width="350" height="225" color="#000000" fontSize="10" showInputData="false">
        <plot type="2d" render="lines" scale_x="3.89216019863466" scale_y="4.80675094854351" scale_z="9.17751015337271" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-163" transpose_y="-22" transpose_z="0">
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">2</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">3</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">4</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand" style="string">o</e>
            <e type="function" args="3">augment</e>
            <e type="operand">5</e>
            <e type="operand">1</e>
            <e type="function" args="7">sys</e>
          </input>
        </plot>
      </region>
      <region left="387" top="774" width="350" height="225" color="#000000" fontSize="10" showInputData="false">
        <plot type="2d" render="lines" scale_x="3.89216019863466" scale_y="4.80675094854351" scale_z="9.17751015337271" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-163" transpose_y="-22" transpose_z="0">
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">n</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand" style="string">o</e>
            <e type="function" args="3">augment</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">sys</e>
          </input>
        </plot>
      </region>
      <region left="414" top="1089" width="118" height="26" color="#000000" bgColor="#ffffcc" fontSize="10">
        <math>
          <input>
            <e type="operand">X</e>
            <e type="operand">0</e>
            <e type="operand">7</e>
            <e type="operand">0.5</e>
            <e type="function" args="3">range</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="612" top="1089" width="73" height="32" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">Y</e>
            <e type="operand">X</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 left="387" top="1125" width="350" height="225" color="#000000" fontSize="10" showInputData="false">
        <plot type="2d" render="lines" scale_x="3.89216019863466" scale_y="4.80675094854351" scale_z="9.17751015337271" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-163" transpose_y="-22" transpose_z="0">
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">f</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand">n</e>
            <e type="function" args="3">PolyFit</e>
            <e type="operand">x</e>
            <e type="function" args="2">PolyVal</e>
            <e type="operand">X</e>
            <e type="operand">Y</e>
            <e type="operand" style="string">o</e>
            <e type="function" args="3">augment</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">sys</e>
          </input>
        </plot>
      </region>
      <region top="1377" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="18" top="1404" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
  </regions>
</worksheet>